gnu: Add rust-strum-0.24.

* gnu/packages/crates-io.scm (rust-strum-0.24, rust-strum-macros-0.24):
New variables.
(rust-strum-0.21): inherit from rust-strum-0.24.
(rust-strum-macros-0.21): inherit from rust-strum-macros-0.24.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Andrew Jose 2023-09-21 18:14:51 +05:30 committed by Efraim Flashner
parent 2f46ffd3ae
commit 27b64d3efa
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -65102,8 +65102,35 @@ (define-public rust-structopt-derive-0.2
"Parse command line argument by defining a struct, derive crate.")
(license (list license:asl2.0 license:expat))))
(define-public rust-strum-0.24
(package
(name "rust-strum")
(version "0.24.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "strum" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0gz6cjhlps5idwasznklxdh2zsas6mxf99vr0n27j876q12n0gh6"))))
(build-system cargo-build-system)
(arguments
`(#:tests? #f ; Doc tests fail.
#:cargo-inputs
(("rust-phf" ,rust-phf-0.10)
("rust-strum-macros" ,rust-strum-macros-0.24))
#:cargo-development-inputs
(("rust-strum-macros" ,rust-strum-macros-0.24))))
(home-page "https://github.com/Peternator7/strum")
(synopsis "Set of traits for working with enums and strings")
(description
"Strum is a set of macros and traits for working with enums and strings
easier in Rust.")
(license license:expat)))
(define-public rust-strum-0.21
(package
(inherit rust-strum-0.24)
(name "rust-strum")
(version "0.21.0")
(source
@ -65113,17 +65140,10 @@ (define-public rust-strum-0.21
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1qnd2by1zrwgx7li0hmwy7jbzjwz1ky697qjg85nga8zzny6py5a"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-strum-macros" ,rust-strum-macros-0.21))))
(home-page "https://github.com/Peternator7/strum")
(synopsis "Set of traits for working with enums and strings")
(description
"Strum is a set of macros and traits for working with enums and strings
easier in Rust.")
(license license:expat)))
(("rust-strum-macros" ,rust-strum-macros-0.21))))))
(define-public rust-strum-0.20
(package
@ -65176,8 +65196,36 @@ (define-public rust-strum-0.18
`(#:cargo-inputs
(("rust-strum-macros" ,rust-strum-macros-0.18))))))
(define-public rust-strum-macros-0.24
(package
(name "rust-strum-macros")
(version "0.24.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "strum_macros" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0naxz2y38kwq5wgirmia64vvf6qhwy8j367rw966n62gsbh5nf0y"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-heck" ,rust-heck-0.4)
("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
("rust-rustversion" ,rust-rustversion-1)
("rust-syn" ,rust-syn-1))
#:cargo-development-inputs
(("rust-strum" ,rust-strum-0.24))))
(home-page "https://github.com/Peternator7/strum")
(synopsis "Set of macros for working with enums and strings")
(description
"This crate provides helpful macros for working with enums and strings.")
(license license:expat)))
(define-public rust-strum-macros-0.21
(package
(inherit rust-strum-macros-0.24)
(name "rust-strum-macros")
(version "0.21.1")
(source
@ -65187,19 +65235,13 @@ (define-public rust-strum-macros-0.21
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1v55b1in7dn07s6vxr8dajqpvxkxjbfq6qamnjgcbnq9x3pawsnh"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-heck" ,rust-heck-0.3)
("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-1))))
(home-page "https://github.com/Peternator7/strum")
(synopsis "Set of macros for working with enums and strings")
(description
"This crate provides helpful macros for working with enums and strings.")
(license license:expat)))
("rust-syn" ,rust-syn-1))))))
(define-public rust-strum-macros-0.20
(package