mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 14:40:21 -05:00
gnu: Add rust-dashmap-3.
* gnu/packages/crates-io.scm (rust-dashmap-3): New variable.
This commit is contained in:
parent
1cf95488ca
commit
9de76735db
1 changed files with 40 additions and 0 deletions
|
@ -5831,6 +5831,46 @@ (define-public rust-darling-macro-0.10
|
|||
reading attributes into structs when implementing custom derives.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public rust-dashmap-3
|
||||
(package
|
||||
(name "rust-dashmap")
|
||||
(version "3.11.10")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (crate-uri "dashmap" version))
|
||||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"1ddrjj4khb0s263pw278g5dvbhaid40611h123s9w5shr0phw9hg"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
;; Enable unstable features
|
||||
(substitute* "src/lib.rs"
|
||||
(("#!\\[cfg_attr" all)
|
||||
(string-append "#![feature(map_get_key_value)]" "\n"
|
||||
"#![feature(inner_deref)]" "\n"
|
||||
all)))
|
||||
#t))))
|
||||
(build-system cargo-build-system)
|
||||
(arguments
|
||||
`(#:cargo-inputs
|
||||
(("rust-ahash" ,rust-ahash-0.3)
|
||||
("rust-hashbrown" ,rust-hashbrown-0.8)
|
||||
("rust-serde" ,rust-serde-1))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'enable-unstable-features
|
||||
(lambda _
|
||||
(setenv "RUSTC_BOOTSTRAP" "1")
|
||||
#t)))))
|
||||
(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-data-encoding-2
|
||||
(package
|
||||
(name "rust-data-encoding")
|
||||
|
|
Loading…
Reference in a new issue