From bf71e35236a59980ea797f402387b0ea6c257741 Mon Sep 17 00:00:00 2001 From: Attila Lendvai Date: Wed, 19 Jan 2022 15:07:36 +0100 Subject: gnu: Add rust-enumset-1. * gnu/packages/crates-io.scm (rust-enumset-1): New variable. (rust-enumset-derive-0.5): New variable. Signed-off-by: Nicolas Goaziou --- gnu/packages/crates-io.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 81c39d55ff..a3ad704ecb 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -19669,6 +19669,58 @@ convert enum to u8 slice ref.") (description "Enumflags2 implements the classic bitflags datastructure.") (license (list license:expat license:asl2.0)))) +(define-public rust-enumset-1 + (package + (name "rust-enumset") + (version "1.0.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "enumset" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0b2vdggbsnvvw09czxaazbqcpa378fycf7fs3afz5dbgkb0x45k2")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-enumset-derive" ,rust-enumset-derive-0.5) + ("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-bincode" ,rust-bincode-1) + ("rust-rustversion" ,rust-rustversion-1) + ("rust-serde-derive" ,rust-serde-derive-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-trybuild" ,rust-trybuild-1)))) + (home-page "https://github.com/Lymia/enumset") + (synopsis "Library for creating compact sets of enums") + (description "This package provides a Rust library for creating +compact sets of enums.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-enumset-derive-0.5 + (package + (name "rust-enumset-derive") + (version "0.5.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "enumset-derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1m7ccz9fcxsx3s1drj77psk62xfgjia0hp9lal3qhpb5ls514lb4")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-darling" ,rust-darling-0.13) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)))) + (home-page "https://github.com/Lymia/enumset") + (synopsis "Internal helper crate for enumset") + (description "This package is an internal helper crate for +@code{rust-enumset}. It is not public API.") + (license (list license:expat license:asl2.0)))) + (define-public rust-env-logger-0.9 (package (name "rust-env-logger") -- cgit 1.4.1