summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-06-10 23:16:46 +0300
committerEfraim Flashner <efraim@flashner.co.il>2021-06-10 23:16:46 +0300
commit47545798fbb04a0c717d9b6c9fc9f0ca9f9c17c2 (patch)
tree5888a7687cda2d72dc48d6e74fbfc11a6d5c86ff /gnu/packages/crates-io.scm
parentd85301d4aa4ca19c346f14d5cd05144bfa530592 (diff)
gnu: Add rust-cxxbridge-macro-1.
* gnu/packages/crates-io.scm (rust-cxxbridge-macro-1): New variable. (rust-cxxbridge-macro-0.5): Inherit from rust-cxxbridge-macro-1.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm40
1 files changed, 34 insertions, 6 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3251b905fa..036ab05e19 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -11171,10 +11171,10 @@ crate (implementation detail).")
(base32
"0jfwsm85s5kalgqbqlg1kq79zcb5zwk375h0qw7ycz5i6v3c8j0k"))))))
-(define-public rust-cxxbridge-macro-0.5
+(define-public rust-cxxbridge-macro-1
(package
(name "rust-cxxbridge-macro")
- (version "0.5.10")
+ (version "1.0.49")
(source
(origin
(method url-fetch)
@@ -11183,21 +11183,49 @@ crate (implementation detail).")
(string-append name "-" version ".tar.gz"))
(sha256
(base32
- "05mhvchmcb8dpgcqkl5vyxycywp2x42vw1qh2hyxxyi576nmmxsr"))))
+ "0gkwvihw74dh8p3fz3552wnxanrpwmwfy38ylz2z8knjq0y8y4v3"))))
(build-system cargo-build-system)
(arguments
- `(#:cargo-inputs
- (("rust-proc-macro2" ,rust-proc-macro2-1)
+ `(#:rust ,rust-1.48 ; or newer
+ #:cargo-inputs
+ (("rust-clang-ast" ,rust-clang-ast-0.1)
+ ("rust-flate2" ,rust-flate2-1)
+ ("rust-memmap" ,rust-memmap-0.7)
+ ("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
("rust-syn" ,rust-syn-1))
#:cargo-development-inputs
- (("rust-cxx" ,rust-cxx-0.5))))
+ (("rust-cxx" ,rust-cxx-1))))
(home-page "https://cxx.rs")
(synopsis "Implementation detail of the `cxx` crate")
(description
"This package provides an implementation detail of the @code{cxx} crate.")
(license (list license:expat license:asl2.0))))
+(define-public rust-cxxbridge-macro-0.5
+ (package
+ (inherit rust-cxxbridge-macro-1)
+ (name "rust-cxxbridge-macro")
+ (version "0.5.10")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "cxxbridge-macro" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "05mhvchmcb8dpgcqkl5vyxycywp2x42vw1qh2hyxxyi576nmmxsr"))))
+ (arguments
+ `(#:cargo-inputs
+ (("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-quote" ,rust-quote-1)
+ ("rust-syn" ,rust-syn-1))
+ #:cargo-development-inputs
+ (("rust-cxx" ,rust-cxx-0.5))))))
+
(define-public rust-daemonize-0.4
(package
(name "rust-daemonize")