From c6e2637bc1688289a506eff01a7eef64680420e4 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 24 Oct 2022 16:08:55 +0300 Subject: [PATCH] gnu: Add rust-smartstring-1. * gnu/packages/crates-io.scm (rust-smartstring-1): New variable. (rust-smartstring-0.2): Inherit from rust-smartstring-1. --- gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 93b64bb83f..d39011cf8e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -54109,8 +54109,35 @@ stack.") control on the fields.") (license license:expat))) +(define-public rust-smartstring-1 + (package + (name "rust-smartstring") + (version "1.0.1") + (source (origin + (method url-fetch) + (uri (crate-uri "smartstring" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0agf4x0jz79r30aqibyfjm1h9hrjdh0harcqcvb2vapv7rijrdrz")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-arbitrary" ,rust-arbitrary-1) + ("rust-autocfg" ,rust-autocfg-1) + ("rust-proptest" ,rust-proptest-1) + ("rust-serde" ,rust-serde-1) + ("rust-static-assertions" ,rust-static-assertions-1) + ("rust-version-check" ,rust-version-check-0.9)))) + (home-page "https://github.com/bodil/smartstring") + (synopsis "Compact inlined strings") + (description "This package provides compact inlined strings.") + (license license:mpl2.0))) + (define-public rust-smartstring-0.2 (package + (inherit rust-smartstring-1) (name "rust-smartstring") (version "0.2.9") (source (origin @@ -54120,18 +54147,13 @@ control on the fields.") (sha256 (base32 "16rc6n0p4r4aw6k6jxf2s37wyaijaa4pwpw7rqki7cn2q0qnmaii")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs (("rust-arbitrary" ,rust-arbitrary-0.4) ("rust-proptest" ,rust-proptest-0.10) ("rust-serde" ,rust-serde-1) - ("rust-static-assertions" ,rust-static-assertions-1)))) - (home-page "https://github.com/bodil/smartstring") - (synopsis "Compact inlined strings") - (description "This package provides compact inlined strings.") - (license license:mpl2.0))) + ("rust-static-assertions" ,rust-static-assertions-1)))))) (define-public rust-smawk-0.3 (package