gnu: Add rust-optfield-0.3.

* gnu/packages/crates-io.scm (rust-optfield-0.3): New variable.

Change-Id: I5686f2d92365833459959312f8da6a312d558d85
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Andrew Wong 2025-01-05 18:01:13 -05:00 committed by Efraim Flashner
parent 17131c2aa6
commit df8e747f6c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -49246,6 +49246,30 @@ (define-public rust-opml-1
(description "This package provides an OPML parser for Rust.")
(license (list license:expat license:asl2.0))))
(define-public rust-optfield-0.3
(package
(name "rust-optfield")
(version "0.3.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "optfield" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "079a5n7lhqsj444fkgk580vra5v2nhym7czwnky9iip9rljz0ngs"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-2))
#:cargo-development-inputs (("rust-paste" ,rust-paste-1)
("rust-serde" ,rust-serde-1))))
(home-page "https://github.com/roignpar/optfield")
(synopsis "Macro that generates structs with optional fields")
(description
"This package provides a macro that generates structs with optional fields.")
(license (list license:expat license:asl2.0))))
(define-public rust-optick-1
(package
(name "rust-optick")