From b9ad6cb413f7de052e24654201f7a56dcb3411b0 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Wed, 27 Jul 2022 12:04:16 +0200 Subject: gnu: Add rust-similar-asserts. * gnu/packages/crates-io.scm (rust-similar-asserts-1): New variable. --- gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/crates-io.scm') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1b2a284161..eeab528ced 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -56532,6 +56532,32 @@ (define-public rust-similar-1 (description "This package provides a diff library for Rust.") (license license:asl2.0))) +(define-public rust-similar-asserts-1 + (package + (name "rust-similar-asserts") + (version "1.2.0") + (source (origin + (method url-fetch) + (uri (crate-uri "similar-asserts" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1789db0fm85p4zvy44b2jwdjgw6h2b51bi133kak2l1pl8qzbjb4")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-console" ,rust-console-0.15) + ("rust-serde" ,rust-serde-1) + ("rust-similar" ,rust-similar-2)) + #:cargo-development-inputs + (("rust-serde" ,rust-serde-1)))) + (home-page "https://github.com/mitsuhiko/similar-asserts") + (synopsis "Asserts macros with colorized diff output") + (description + "This crate provides @code{assert_eq!}-like macros with colorized +diff output.") + (license license:asl2.0))) + (define-public rust-simplelog-0.11 (package (name "rust-simplelog") -- cgit v1.2.3