GNU bug report logs - #69257
[PATCH 000/228 rust-team] WIP: Add GNOME Fractal dependencies.

Previous Next

Package: guix-patches;

Reported by: Herman Rimm <herman <at> rimm.ee>

Date: Sun, 18 Feb 2024 20:51:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Herman Rimm <herman <at> rimm.ee>
To: 69257 <at> debbugs.gnu.org
Cc: Herman Rimm <herman <at> rimm.ee>, Efraim Flashner <efraim <at> flashner.co.il>
Subject: [bug#69257] [PATCH 004/228] gnu: Add rust-as-variant-1.
Date: Sun, 18 Feb 2024 22:02:02 +0100
* gnu/packages/crates-io.scm (rust-as-variant-1): Add variable.
---
 gnu/packages/crates-io.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index dbe16c0e22..0bcf3ad231 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3268,6 +3268,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")
-- 
2.41.0





This bug report was last modified 1 year and 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.