From 665fb3b1886771a2a842bf7deb88389a77c4cabe Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Tue, 26 Jul 2022 00:50:17 +0200 Subject: gnu: Add rust-const-cstr. * gnu/packages/crates-io.scm (rust-const-cstr-0.3): New variable. --- gnu/packages/crates-io.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 0802330a78..da16a6ef15 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -12260,6 +12260,25 @@ idiomatic wrappers for Mac OS X's CommonCrypto library.") "Common path finds the common prefix between a set of paths.") (license (list license:expat license:asl2.0)))) +(define-public rust-const-cstr-0.3 + (package + (name "rust-const-cstr") + (version "0.3.0") + (source (origin + (method url-fetch) + (uri (crate-uri "const-cstr" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "19ij6m8s16d0i7vma535l7w4x8bcanjcxs7c6n7sci86ydghnggd")))) + (build-system cargo-build-system) + (home-page "https://github.com/cybergeek94/const-cstr") + (synopsis "Create static C-compatible strings from Rust string literals") + (description + "This crate lets you create static C-compatible strings from Rust string +literals.") + (license (list license:expat license:asl2.0)))) + ;; This package requires features which are unavailable ;; on the stable releases of Rust. (define-public rust-compiler-builtins-0.1 -- cgit 1.4.1