From d0698e92549a72b0d75bd1c8ab61db970669622f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 2 Aug 2023 20:14:19 +0300 Subject: gnu: Add rust-displaydoc-0.2. * gnu/packages/crates-io.scm (rust-displaydoc-0.2): New variable. --- gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 7c4e71d8ad..b31f8d4a3d 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -20212,6 +20212,38 @@ (define-public rust-dispatch-0.1 "019nzy993hxaiazcdnayx3csv2iki34i535asw11ki96hakkrs84")))) (arguments '(#:tests? #f)))) ; Tests only run on Mac. +(define-public rust-displaydoc-0.2 + (package + (name "rust-displaydoc") + (version "0.2.4") + (source (origin + (method url-fetch) + (uri (crate-uri "displaydoc" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0p8pyg10csc782qlwx3znr6qx46ni96m1qh597kmyrf6s3s8axa8")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-2)) + #:cargo-development-inputs + (("rust-libc" ,rust-libc-0.2) + ("rust-pretty-assertions" ,rust-pretty-assertions-0.6) + ("rust-rustversion" ,rust-rustversion-1) + ("rust-static-assertions" ,rust-static-assertions-1) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-trybuild" ,rust-trybuild-1)))) + (home-page "https://github.com/yaahc/displaydoc") + (synopsis + "Derive macro for implementing the display Trait via a doc comment") + (description + "This package provides a derive macro for implementing the display Trait +via a doc comment and string interpolation.") + (license (list license:expat license:asl2.0)))) + (define-public rust-dissimilar-1 (package (name "rust-dissimilar") -- cgit v1.2.3