From df8e747f6c2ec8191cd2ce6d085641f21374cbb0 Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Sun, 5 Jan 2025 18:01:13 -0500 Subject: 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 --- gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 59f71214d7..12db62de34 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -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") -- cgit v1.2.3