Subject: [bug#75127] [PATCH v8 04/44] gnu: Add rust-snake-case-0.3.

From: Herman Rimm <[email-masked]>
Date: Wed, 5 Feb 2025 19:31:19 +0100

From: Jordan Moore <[email-masked]>

* gnu/packages/crates-io.scm (rust-snake-case-0.3): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b91c9c6cdfa..d279dd4c673 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -74376,6 +74376,29 @@ (define-public rust-snafu-derive-0.7
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1))))))
 
+(define-public rust-snake-case-0.3
+  (package
+    (name "rust-snake-case")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "snake_case" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1v4f132rk9wxiw8hb3kgnixirzr8kbfhg2lgsf4b85vbg02a0jfn"))
+       (modules '((guix build utils)))
+       (snippet #~(substitute* "Cargo.toml" (("readme =.*") "")))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-serde" ,rust-serde-1))))
+    (home-page "https://github.com/emilk/snake_case")
+    (synopsis "String-like type only containing non-empty snake_case")
+    (description
+     "This package provides @code{SnakeCase}, a String-like type that
+can only contain valid non-empty snake_case.")
+    (license license:expat)))
+
 (define-public rust-snap-1
   (package
     (name "rust-snap")
-- 
2.47.1