diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-02-18 10:52:06 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:58:54 +0200 |
commit | e7216d0e3065d3e34ecbb2d6be4ddcfb77575a1e (patch) | |
tree | 3f52a477ea53133d519bc914006d486782afca72 /gnu | |
parent | b4db787dc8c50a046c739164e9206a393ea5a0b2 (diff) |
gnu: Add rust-assert-matches2-0.1.
* gnu/packages/crates-io.scm (rust-assert-matches2-0.1): New variable.
Change-Id: I3e9d1f1eb07700c63f84a375cb8d8cf5e7177368
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 8e0cde3c53..187dcfad56 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -3790,6 +3790,28 @@ assertions on the result of your program's run.") "This package asserts that a value matches a pattern in Rust.") (license (list license:expat license:asl2.0)))) +(define-public rust-assert-matches2-0.1 + (package + (name "rust-assert-matches2") + (version "0.1.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "assert_matches2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0mnz1wgz1s2s1985h44mdhy2m7615jjyr9pzq359injqqja2v0qm")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-development-inputs (("rust-serde-json" ,rust-serde-json-1)))) + (home-page "https://codeberg.org/jplatte/assert_matches2") + (synopsis + "Assert_matches! macro that brings variables from the pattern into scope") + (description + "This package provides a version of the assert_matches! macro that brings +variables from the pattern into scope.") + (license license:mpl2.0))) + (define-public rust-assert2-0.3 (package (name "rust-assert2") |