[bug#75391,07/12] gnu: Add rust-documented-0.6.

Message ID b1a74b17cce9698943ee5125c4424038b7319071.1736117349.git.wongandj@icloud.com
State New
Headers
Series gnu: Add wallust. |

Commit Message

Andrew Wong Jan. 5, 2025, 11:01 p.m. UTC
  * gnu/packages/crates-io.scm (rust-documented-0.6): New variable.

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

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9e04e17965..1ed6a81dc0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21580,6 +21580,30 @@  (define-public rust-document-features-0.2
 @code{Cargo.toml}.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-documented-0.6
+  (package
+    (name "rust-documented")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "documented" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1zc7akchjkwnsl0hnzygwad58sfnvrvkcl7w117679cnbg9zxbgy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-documented-macros" ,rust-documented-macros-0.6)
+                       ("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-dogged-0.2
   (package
     (name "rust-dogged")