* gnu/packages/crates-io.scm (rust-bincode-2): New variable.
Signed-off-by: Aaron Covrig <aaron.covrig.us@ieee.org>
---
gnu/packages/crates-io.scm | 53 +++++++++++++++++++++++++++++++-------
1 file changed, 44 insertions(+), 9 deletions(-)
@@ -7152,25 +7152,41 @@ (define-public rust-binascii-0.1
base32 and base16 (hex)")
(license license:expat)))
-(define-public rust-bincode-1
+(define-public rust-bincode-2
(package
(name "rust-bincode")
- (version "1.3.3")
+ (version "2.0.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "bincode" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1bfw3mnwzx5g1465kiqllp5n4r10qrqy88kdlp3jfwnq2ya5xx5i"))))
+ (base32 "0h5pxp3dqkigjwy926a03sl69n9wv7aq4142a20kw9lhn3bzbsin"))
+ (snippet
+ #~(begin (use-modules (guix build utils))
+ ;; Claims to require rust 1.85.0 when it actually doesn't
+ (substitute* "Cargo.toml"
+ (("rust-version =.*") ""))))))
(build-system cargo-build-system)
(arguments
- `(#:cargo-inputs
- (("rust-serde" ,rust-serde-1))
- #:cargo-development-inputs
- (("rust-serde-bytes" ,rust-serde-bytes-0.11)
- ("rust-serde-derive" ,rust-serde-derive-1))))
- (home-page "https://github.com/servo/bincode")
+ (list #:cargo-inputs
+ (list rust-unty-0.0.4
+ rust-bincode-derive-2
+ rust-serde-1)
+ #:cargo-development-inputs
+ (list rust-bincode-1
+ rust-bumpalo-3
+ rust-chrono-0.4
+ rust-criterion-0.5
+ rust-glam-0.25
+ rust-ouroboros-0.18
+ rust-rand-0.8
+ rust-serde-1
+ rust-serde-derive-1
+ rust-tempfile-3
+ rust-uuid-1)))
+ (home-page "https://github.com/bincode-org/bincode")
(synopsis
"Binary serialization/deserialization strategy")
(description
@@ -7178,6 +7194,25 @@ (define-public rust-bincode-1
that uses Serde for transforming structs into bytes and vice versa!")
(license license:expat)))
+(define-public rust-bincode-1
+ (package
+ (inherit rust-bincode-2)
+ (name "rust-bincode")
+ (version "1.3.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "bincode" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1bfw3mnwzx5g1465kiqllp5n4r10qrqy88kdlp3jfwnq2ya5xx5i"))))
+ (arguments
+ `(#:cargo-inputs
+ (("rust-serde" ,rust-serde-1))
+ #:cargo-development-inputs
+ (("rust-serde-bytes" ,rust-serde-bytes-0.11)
+ ("rust-serde-derive" ,rust-serde-derive-1))))))
+
(define-public rust-bincode-derive-2
(package
(name "rust-bincode-derive")