From 8441e3ab017b9d7f1ee84f33a92f832862fd9d94 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 28 Mar 2024 21:40:00 +0200 Subject: [PATCH] gnu: Add rust-cstr-0.2. * gnu/packages/crates-io.scm (rust-cstr-0.2): New variable. Change-Id: Ia798138da246cd30420abe890e45cee5d1051b2d --- gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index d2847ea477..74d19c5c65 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -17840,6 +17840,28 @@ (define-public rust-csv-core-0.1 (description "Bare bones CSV parsing with no_std support.") (license (list license:unlicense license:expat)))) +(define-public rust-cstr-0.2 + (package + (name "rust-cstr") + (version "0.2.12") + (source + (origin + (method url-fetch) + (uri (crate-uri "cstr" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0dj6ll9ry27kn4k0vvhlvbhn9dyyr9haxnd06bxaqnmfr01kjlk8")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1)) + #:cargo-development-inputs (("rust-trybuild" ,rust-trybuild-1)))) + (home-page "https://github.com/upsuper/cstr") + (synopsis "Macro for building static CStr reference") + (description + "This package provides the macro for building static CStr reference.") + (license license:expat))) + (define-public rust-cstr-core-0.2 (package (name "rust-cstr-core")