gnu: Add rust-dashmap-5.

* gnu/packages/crates-io.scm (rust-dashmap-5): New variable.
(rust-dashmap-4): Inherit from rust-dashmap-5.
This commit is contained in:
Efraim Flashner 2023-10-01 16:19:48 +03:00
parent 9451486df9
commit 846d143870
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -18468,8 +18468,37 @@ (define-public rust-darling-macro-0.9
("rust-quote" ,rust-quote-0.6)
("rust-syn" ,rust-syn-0.15))))))
(define-public rust-dashmap-5
(package
(name "rust-dashmap")
(version "5.5.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "dashmap" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0miqnlxi501vfbv6mw5jbmzgnj0wjrch3p4abvpd59s9v30lg1wp"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-arbitrary" ,rust-arbitrary-1)
("rust-cfg-if" ,rust-cfg-if-1)
("rust-hashbrown" ,rust-hashbrown-0.14)
("rust-lock-api" ,rust-lock-api-0.4)
("rust-once-cell" ,rust-once-cell-1)
("rust-parking-lot-core" ,rust-parking-lot-core-0.9)
("rust-rayon" ,rust-rayon-1)
("rust-serde" ,rust-serde-1))))
(home-page "https://github.com/xacrimon/dashmap")
(synopsis "Blazing fast concurrent HashMap for Rust")
(description "This package implements a blazing fast concurrent HashMap
for Rust.")
(license license:expat)))
(define-public rust-dashmap-4
(package
(inherit rust-dashmap-5)
(name "rust-dashmap")
(version "4.0.2")
(source
@ -18480,19 +18509,13 @@ (define-public rust-dashmap-4
(string-append name "-" version ".tar.gz"))
(sha256
(base32 "1773x18k5m2zw1iyibs8l3wl1p1aijdbrc0w844xys06inr46yp7"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-cfg-if" ,rust-cfg-if-1)
("rust-num-cpus" ,rust-num-cpus-1)
("rust-rayon" ,rust-rayon-1)
("rust-serde" ,rust-serde-1))))
(home-page "https://github.com/xacrimon/dashmap")
(synopsis "Blazing fast concurrent HashMap for Rust")
(description "This package implements a blazing fast concurrent HashMap
for Rust.")
(license license:expat)))
("rust-serde" ,rust-serde-1))))))
(define-public rust-dashmap-3
(package