diff mbox series

[bug#56037,10/14] gnu: Add rust-const-format-0.2.

Message ID d60a71ee773e1726e38e3f3634113208cc240117.1655465109.git.foo.dogsquared@gmail.com
State New
Headers show
Series [bug#56037,01/14] gnu: Add rust-kstring-2. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Gabriel Arazas June 17, 2022, 11:59 a.m. UTC
* gnu/packages/crates-io.scm (rust-const-format-0.2): New variable.
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bd8383084e..141d6146f2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -12766,6 +12766,29 @@  (define-public rust-const-fn-0.4
 const functions with conditional compilations.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-const-format-0.2
+  (package
+    (name "rust-const-format")
+    (version "0.2.24")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "const_format" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "179p8ifww66rqivrzsbmwpryb183b4hh7f0wwhgflgx2lrpk38g6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-const-format-proc-macros" ,rust-const-format-proc-macros-0.2))
+       #:cargo-development-inputs
+       (("rust-arrayvec" ,rust-arrayvec-0.5) ("rust-fastrand" ,rust-fastrand-1))))
+    (home-page "https://github.com/rodrimati1992/const_format_crates/")
+    (synopsis "Compile-time string formatting")
+    (description
+     "This package provides types and macros for formatting strings at
+compile-time.")
+    (license license:zlib)))
+
 (define-public rust-const-format-proc-macros-0.2
   (package
     (name "rust-const-format-proc-macros")