[bug#77382,rust-team,02/18] gnu: Add rust-const-default-1.

Message ID b905e412b09df96805682d70e7671f33d501f74a.1743337576.git.gabrielsantosdesouza@disroot.org
State New
Headers
Series gnu: Add matugen. |

Commit Message

Gabriel Santos March 30, 2025, 12:26 p.m. UTC
  * gnu/packages/crates-io.scm (rust-const-default-1): New variable.

Change-Id: Idd1058b2602124c5887bb0f7db4debaeb215a0df
---
 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
  

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 744861b339..dae37ca910 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -15869,6 +15869,27 @@  (define-public rust-const-cstr-0.3
 literals.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-const-default-1
+  (package
+    (name "rust-const-default")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "const-default" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1apcnxfrz5xsfxaxbv1n9c5sdfqlmrk81v0q29z5amflfqgnsf8b"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-const-default-derive" ,rust-const-default-derive-0.2))))
+    (home-page "https://github.com/AerialX/const-default.rs")
+    (synopsis "@code{Default}-like trait and macros for evaluation contexts")
+    (description "This package provides a @code{Default}-like trait and
+implements it for Rust primitives, prelude types and arrays.")
+    (license license:expat)))
+
 (define-public rust-const-fn-0.4
   (package
     (name "rust-const-fn")