Subject: [PATCH rust-team 02/18] gnu: Add rust-const-default-1.

From: Gabriel Santos <[email-masked]>
Date: Sun, 30 Mar 2025 09:26:17 -0300

* 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(+)

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")
-- 
2.49.0