From 2e217866cdfd67403db17d8bf011b12a9cbe4889 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Tue, 26 Jul 2022 11:27:53 +0200 Subject: gnu: rust-num-enum: Add 0.5.7. * gnu/packages/crates-io.scm (rust-num-enum-0.5): New variable. (rust-num-enum-0.4): Inherit from it. --- gnu/packages/crates-io.scm | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 58074a075a..0cf8f899a2 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -38579,8 +38579,37 @@ Rust.") (description "Numeric syntax extensions in Rust.") (license (list license:expat license:asl2.0)))) +(define-public rust-num-enum-0.5 + (package + (name "rust-num-enum") + (version "0.5.7") + (source + (origin + (method url-fetch) + (uri (crate-uri "num_enum" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1j8rq7i4xnbzy72z82k41469xlj1bmn4ixagd9wlbvv2ark9alyg")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #false ;missing files + #:cargo-inputs + (("rust-num-enum-derive" ,rust-num-enum-derive-0.5)) + #:cargo-development-inputs + (("rust-anyhow" ,rust-anyhow-1) + ("rust-rustversion" ,rust-rustversion-1) + ("rust-trybuild" ,rust-trybuild-1) + ("rust-walkdir" ,rust-walkdir-2)))) + (home-page "https://github.com/illicitonion/num_enum") + (synopsis "Macros easing inter-operation between primitives and enums") + (description + "This library provides procedural macros to make inter-operation between +primitives and enums easier.") + (license (list license:bsd-3 license:expat license:asl2.0)))) + (define-public rust-num-enum-0.4 (package + (inherit rust-num-enum-0.5) (name "rust-num-enum") (version "0.4.3") (source @@ -38597,11 +38626,6 @@ Rust.") (("rust-derivative" ,rust-derivative-2) ("rust-num-enum" ,rust-num-enum-0.4) ("rust-num-enum-derive" ,rust-num-enum-derive-0.4)))) - (home-page "https://github.com/illicitonion/num_enum") - (synopsis "Macros easing inter-operation between primitives and enums") - (description - "This library provides procedural macros to make inter-operation between -primitives and enums easier.") (license license:bsd-3))) (define-public rust-num-enum-derive-0.5 -- cgit v1.2.3