Subject: [bug#76537] [PATCH rust-team 2/8] gnu: Add rust-documented-macros-0.9.

From: Andrew Wong <[email-masked]>
Date: Mon, 24 Feb 2025 20:04:27 -0500

* gnu/packages/crates-io.scm (rust-documented-macros-0.9): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8efc8a8285..1b50d4b131 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21926,6 +21926,56 @@ (define-public rust-document-features-0.2
 @code{Cargo.toml}.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-documented-macros-0.9
+  (package
+    (name "rust-documented-macros")
+    (version "0.9.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "documented-macros" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1yp5hy7r88x1bjcyclqyrkpiddm42xmpr3s1znjzjn4vj8svp553"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-convert-case" ,rust-convert-case-0.6)
+                       ("rust-itertools" ,rust-itertools-0.13)
+                       ("rust-optfield" ,rust-optfield-0.3)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-strum" ,rust-strum-0.26)
+                       ("rust-syn" ,rust-syn-2))))
+    (home-page "https://github.com/cyqsimon/documented")
+    (synopsis "Derive and attribute macros for `documented`")
+    (description
+     "This package provides Derive and attribute macros for `documented`.")
+    (license license:expat)))
+
+(define-public rust-documented-0.9
+  (package
+    (name "rust-documented")
+    (version "0.9.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "documented" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1wy67lk299zn0csr5fkmxyz0vkas0ycqk26ys99lbg4m14pv6vdw"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-documented-macros" ,rust-documented-macros-0.9)
+                       ("rust-phf" ,rust-phf-0.11)
+                       ("rust-thiserror" ,rust-thiserror-1))))
+    (home-page "https://github.com/cyqsimon/documented")
+    (synopsis
+     "Derive and attribute macros for accessing your type's documentation at runtime")
+    (description
+     "This package provides Derive and attribute macros for accessing your type's documentation at runtime.")
+    (license license:expat)))
+
 (define-public rust-documented-0.6
   (package
     (name "rust-documented")
-- 
2.48.1