gnu: Add rust-as-variant-1.

* gnu/packages/crates-io.scm (rust-as-variant-1): Add variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Herman Rimm 2024-02-18 22:02:02 +01:00 committed by Efraim Flashner
parent 6ed7223acb
commit 0a265b43c6
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3267,6 +3267,25 @@ (define-public rust-as-derive-utils-0.8
("rust-serde-derive" ,rust-serde-derive-1)
("rust-syn" ,rust-syn-1))))))
(define-public rust-as-variant-1
(package
(name "rust-as-variant")
(version "1.2.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "as_variant" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "13vryhfcslf50f8j1msnxg5689bzwz56z45dgzxqd7r40wis53zk"))))
(build-system cargo-build-system)
(home-page "https://github.com/jplatte/as_variant")
(synopsis "Macro to convert enums with newtype variants to Option")
(description
"This package provides a simple macro to convert enums with newtype
variants to `Option`s.")
(license license:mpl2.0)))
(define-public rust-asio-sys-0.2
(package
(name "rust-asio-sys")