1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com>
4 ;;; This file is part of GNU Guix.
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 (define-module (gnu packages crates-io)
20 #:use-module (guix build-system cargo)
21 #:use-module (guix download)
22 #:use-module ((guix licenses) #:prefix license:)
23 #:use-module (guix packages))
25 (define-public rust-unicode-xid
27 (name "rust-unicode-xid")
32 (uri (crate-uri "unicode-xid" version))
34 (string-append name "-" version ".tar.gz"))
37 "1z57lqh4s18rr4x0j4fw4fmp9hf9346h0kmdgqsqx0fhjr3k0wpw"))))
38 (build-system cargo-build-system)
40 "https://github.com/unicode-rs/unicode-xid")
41 (synopsis "Determine Unicode XID related properties")
42 (description "Determine whether characters have the XID_Start
43 or XID_Continue properties according to Unicode Standard Annex #31.")
45 (license (list license:asl2.0 license:expat))))
47 (define-public rust-proc-macro2
49 (name "rust-proc-macro2")
54 (uri (crate-uri "proc-macro2" version))
56 (string-append name "-" version ".tar.gz"))
59 "05c92v787snyaq4ss16vxc9mdv6zndfgsdq8k3hnnyffmsf7ycad"))))
60 (build-system cargo-build-system)
62 `(#:cargo-inputs (("rust-unicode-xid" ,rust-unicode-xid))
63 #:cargo-development-inputs (("rust-quote" ,rust-quote))))
64 (home-page "https://github.com/alexcrichton/proc-macro2")
65 (synopsis "Stable implementation of the upcoming new `proc_macro` API")
66 (description "This package provides a stable implementation of the upcoming new
67 `proc_macro` API. Comes with an option, off by default, to also reimplement itself
68 in terms of the upstream unstable API.")
70 (license (list license:asl2.0 license:expat))))
72 (define-public rust-quote
79 (uri (crate-uri "quote" version))
81 (string-append name "-" version ".tar.gz"))
84 "1nw0klza45hf127kfyrpxsxd5jw2l6h21qxalil3hkr7bnf7kx7s"))))
85 (build-system cargo-build-system)
87 `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2))))
88 (home-page "https://github.com/dtolnay/quote")
89 (synopsis "Quasi-quoting macro quote!(...)")
90 (description "Quasi-quoting macro quote!(...)")
92 (license (list license:asl2.0 license:expat))))