summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2024-09-07 18:56:13 +0200
committerRicardo Wurmus <rekado@elephly.net>2025-04-07 16:44:28 +0200
commited47cde6de17487a9b56459a0f8827ec01dfd9ef (patch)
tree94a9f4125c515d43ae445c49c0f7d7d88ded8edf
parent872394c15700845471f8560a09b4686159bc35f7 (diff)
gnu: Add rust-monostate-0.1.
* gnu/packages/crates-io.scm (rust-monostate-0.1): New variable. Change-Id: I53f1ebfaf98e785eedeb3293f211bffa6f44bc76
-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 a509fd48e95..28776b68871 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43752,6 +43752,32 @@ possible over the OS abstractions.")
"Chaining APIs for both self -> Self and &mut self methods.")
(license license:expat)))
+(define-public rust-monostate-0.1
+ (package
+ (name "rust-monostate")
+ (version "0.1.11")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "monostate" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0xchz8cs990g7g5f8jjybjnyi9xnhykiq44gl97p5rbh3hgjm347"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-monostate-impl" ,rust-monostate-impl-0.1)
+ ("rust-serde" ,rust-serde-1))
+ #:cargo-development-inputs
+ (("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1))))
+ (home-page "https://github.com/dtolnay/monostate")
+ (synopsis "Type that deserializes only from one specific value")
+ (description
+ "This package provides a Rust type that deserializes only from one
+specific value.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-more-asserts-0.3
(package
(name "rust-more-asserts")