summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-02-13 20:20:13 +0200
committerHilton Chain <hako@ultrarare.space>2025-04-30 23:19:11 +0800
commitd3d961a9fa4933ebea48602cea063e1b1d43bd1b (patch)
tree7e6213d3761dea8d4f11c3255d82b9f5a7d8cbe2
parent6d3311d101e8c45ccc10acd4e19d4116604d4229 (diff)
gnu: Add rust-cbindgen-0.28.
* gnu/packages/rust-apps.scm (rust-cbindgen-0.28): New variable. (rust-cbindgen-0.27): Inherit from rust-cbindgen-0.28. Change-Id: Ieeeb424107be4ea4c93b2ab7cdeed582b41404ac Signed-off-by: Hilton Chain <hako@ultrarare.space>
-rw-r--r--gnu/packages/rust-apps.scm36
1 files changed, 32 insertions, 4 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 4d9430e5da..8b5140a269 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -3006,17 +3006,17 @@ with colored output, multi-column keyword search, additional information, pager
support, watch support (like @command{top}) and a tree view.")
(license license:expat)))
-(define-public rust-cbindgen-0.27
+(define-public rust-cbindgen-0.28
(package
(name "rust-cbindgen")
- (version "0.27.0")
+ (version "0.28.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "cbindgen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1sqm3axr678d72yihgmpr9d17mj99ccibxfqhw53mgzwzkbqvkiz"))))
+ (base32 "1zyiaifg6mcd4wwhhbxk8adzhph6qz4wxzgagvg3ijp95j58dpga"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-clap" ,rust-clap-4)
@@ -3034,12 +3034,40 @@ support, watch support (like @command{top}) and a tree view.")
(("rust-pretty-assertions" ,rust-pretty-assertions-1)
("rust-serial-test" ,rust-serial-test-2))))
(native-inputs (list python-cython))
- (home-page "https://github.com/eqrion/cbindgen")
+ (home-page "https://github.com/mozilla/cbindgen")
(synopsis "Tool for generating C bindings to Rust code")
(description
"This package provides a tool for generating C/C++ bindings to Rust code.")
(license license:mpl2.0)))
+(define-public rust-cbindgen-0.27
+ (package
+ (inherit rust-cbindgen-0.28)
+ (name "rust-cbindgen")
+ (version "0.27.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "cbindgen" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1sqm3axr678d72yihgmpr9d17mj99ccibxfqhw53mgzwzkbqvkiz"))))
+ (arguments
+ `(#:cargo-inputs (("rust-clap" ,rust-clap-4)
+ ("rust-heck" ,rust-heck-0.4)
+ ("rust-indexmap" ,rust-indexmap-2)
+ ("rust-log" ,rust-log-0.4)
+ ("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-2)
+ ("rust-tempfile" ,rust-tempfile-3)
+ ("rust-toml" ,rust-toml-0.8))
+ #:cargo-development-inputs
+ (("rust-pretty-assertions" ,rust-pretty-assertions-1)
+ ("rust-serial-test" ,rust-serial-test-2))))))
+
(define-public rust-cbindgen-0.26
(package
(inherit rust-cbindgen-0.27)