From cc657be8da6a6a28e79d708ac34377f3ac3d9239 Mon Sep 17 00:00:00 2001 From: John Soo Date: Fri, 13 Dec 2019 22:32:13 -0800 Subject: [PATCH] gnu: Add rust-bincode-1.1. * gnu/packages/crates-io.scm (rust-bincode-1.1): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1ada30afec..6ef16db087 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -203,6 +203,37 @@ (define-public rust-bencher-0.1 (license (list license:asl2.0 license:expat)))) +(define-public rust-bincode-1.1 + (package + (name "rust-bincode") + (version "1.1.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "bincode" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1xx6bp39irvsndk6prnmmq8m1l9p6q2qj21j6mfks2y81pjsa14z")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-autocfg" ,rust-autocfg-0.1) + ("rust-byteorder" ,rust-byteorder-1.3) + ("rust-serde" ,rust-serde-1.0)) + #:cargo-development-inputs + (("rust-serde-bytes" ,rust-serde-bytes-0.11) + ("rust-serde-derive" ,rust-serde-derive-1.0)))) + (home-page "https://github.com/servo/bincode") + (synopsis + "Binary serialization/deserialization strategy") + (description + "This package provides a binary serialization/deserialization strategy +that uses Serde for transforming structs into bytes and vice versa!") + (license license:expat))) + (define-public rust-bitflags-1 (package (name "rust-bitflags")