guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/62: gnu: Add rust-as-variant-1.


From: guix-commits
Subject: 03/62: gnu: Add rust-as-variant-1.
Date: Wed, 13 Mar 2024 16:22:13 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 958f8805cae0c223c6fcbb75fd308a2c72c45953
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Sun Feb 18 22:02:02 2024 +0100

    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>
---
 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 0e7cb09bc8..f5b00e28a5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3246,6 +3246,25 @@ the abi_stable and structural crates.")
         ("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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]