gnu: Add rust-bson-2.
* gnu/packages/crates-io.scm (rust-bson-2): New variable. (rust-bson-0.14): Inherit from above.master
parent
5b1ec37623
commit
c733a84368
|
@ -6798,8 +6798,41 @@ bytes), doesn't have the 128 byte limitation and supports a configurable
|
||||||
alphabet.")
|
alphabet.")
|
||||||
(license (list license:asl2.0 license:expat))))
|
(license (list license:asl2.0 license:expat))))
|
||||||
|
|
||||||
|
(define-public rust-bson-2
|
||||||
|
(package
|
||||||
|
(name "rust-bson")
|
||||||
|
(version "2.0.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "bson" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32 "0ff1xj1vgh2l6sl5gqhkgsfkbhh11jkwd5wf3h0f0mrbg1kd8n7z"))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:skip-build? #t
|
||||||
|
#:cargo-inputs
|
||||||
|
(("rust-ahash" ,rust-ahash-0.7)
|
||||||
|
("rust-base64" ,rust-base64-0.13)
|
||||||
|
("rust-chrono" ,rust-chrono-0.4)
|
||||||
|
("rust-hex" ,rust-hex-0.4)
|
||||||
|
("rust-indexmap" ,rust-indexmap-1)
|
||||||
|
("rust-lazy-static" ,rust-lazy-static-1)
|
||||||
|
("rust-rand" ,rust-rand-0.8)
|
||||||
|
("rust-serde" ,rust-serde-1)
|
||||||
|
("rust-serde-bytes" ,rust-serde-bytes-0.11)
|
||||||
|
("rust-serde-json" ,rust-serde-json-1)
|
||||||
|
("rust-uuid" ,rust-uuid-0.8))))
|
||||||
|
(home-page "https://github.com/mongodb/bson-rust")
|
||||||
|
(synopsis "Encoding and decoding support for BSON in Rust")
|
||||||
|
(description
|
||||||
|
"This crate provides encoding and decoding support for BSON.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public rust-bson-0.14
|
(define-public rust-bson-0.14
|
||||||
(package
|
(package
|
||||||
|
(inherit rust-bson-2)
|
||||||
(name "rust-bson")
|
(name "rust-bson")
|
||||||
(version "0.14.1")
|
(version "0.14.1")
|
||||||
(source
|
(source
|
||||||
|
@ -6809,7 +6842,6 @@ alphabet.")
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "000wqyb4icy32h74wl5wb6iw2flzwwlrpgq51xgcw91g2b87w5rw"))))
|
(base32 "000wqyb4icy32h74wl5wb6iw2flzwwlrpgq51xgcw91g2b87w5rw"))))
|
||||||
(build-system cargo-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:skip-build? #t
|
`(#:skip-build? #t
|
||||||
#:cargo-inputs
|
#:cargo-inputs
|
||||||
|
@ -6823,12 +6855,7 @@ alphabet.")
|
||||||
("rust-rand" ,rust-rand-0.7)
|
("rust-rand" ,rust-rand-0.7)
|
||||||
("rust-serde" ,rust-serde-1)
|
("rust-serde" ,rust-serde-1)
|
||||||
("rust-serde-json" ,rust-serde-json-1)
|
("rust-serde-json" ,rust-serde-json-1)
|
||||||
("rust-time" ,rust-time-0.1))))
|
("rust-time" ,rust-time-0.1))))))
|
||||||
(home-page "https://github.com/mongodb/bson-rust")
|
|
||||||
(synopsis "Encoding and decoding support for BSON in Rust")
|
|
||||||
(description
|
|
||||||
"This package provides encoding and decoding support for BSON in Rust.")
|
|
||||||
(license license:expat)))
|
|
||||||
|
|
||||||
(define-public rust-bstr-0.2
|
(define-public rust-bstr-0.2
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue