summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-02-10 17:17:48 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-02-13 11:50:31 +0100
commit0c383fc0894c3cce1b929e53a9c05839cab83036 (patch)
tree54e64ad70c3dfd32e4593b2a8ad86a2e788b17ec /gnu
parent564a85a0ab7fc469b4fb54766881793114b5ae0d (diff)
downloadguix-0c383fc0894c3cce1b929e53a9c05839cab83036.tar.gz
gnu: Add rust-getset-0.1.
* gnu/packages/crates-io.scm (rust-getset-0.1): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1cba4b8822..8c23ff33ff 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -15217,6 +15217,32 @@ retrieving random data from system source.")
         ("rust-wasi" ,rust-wasi-0.9)
         ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))))
 
+(define-public rust-getset-0.1
+  (package
+    (name "rust-getset")
+    (version "0.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "getset" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "016590lxhlqga016z1qnavl0zavk59b97aix2zcd4wad3b02icr4"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-proc-macro-error" ,rust-proc-macro-error-1)
+        ("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))))
+    (home-page "https://github.com/Hoverbear/getset")
+    (synopsis "Getters and setters for Rust")
+    (description
+     "This package provides a procedural macro for generating the most basic
+getters and setters on fields.")
+    (license license:expat)))
+
 (define-public rust-gettext-rs-0.5
   (package
     (name "rust-gettext-rs")