diff options
author | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-05-31 01:17:54 +0200 |
---|---|---|
committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-05-31 02:41:52 +0200 |
commit | 0a840631dd1c93cb85f65e237ec31d11a5388cf1 (patch) | |
tree | 1623e08f336a4c076a1b1cefa391b87aa091dc48 | |
parent | fe0ca6461a9a7594ed5033762f88c2d897c5f7b1 (diff) |
gnu: Add cargo-readme@3.3.1.
* gnu/packages/rust-apps.scm (cargo-readme): New variable.
Change-Id: If52d5265d9cbe16656d1fcd0965de3c7f78f7184
-rw-r--r-- | gnu/packages/rust-apps.scm | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index c127ad08ff..99306f9273 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -539,6 +539,46 @@ the terminal.") (description "@code{cargo-machete} finds unused dependencies in Cargo.toml.") (license (list license:expat license:asl2.0)))) +(define-public cargo-readme + (package + (name "cargo-readme") + (version "3.3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/webern/cargo-readme.git") + (commit (string-append "v" version)))) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1jwh2j4lw1hk08aflgk7pamnhdbrzr47dc0ipzczn48k6008fm8l")))) + (build-system cargo-build-system) + (arguments + `(#:install-source? #f + #:cargo-inputs (("rust-clap" ,rust-clap-4) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-percent-encoding" ,rust-percent-encoding-2) + ("rust-regex" ,rust-regex-1) + ("rust-serde" ,rust-serde-1) + ("rust-toml" ,rust-toml-0.8)) + #:cargo-development-inputs (("rust-assert-cli" ,rust-assert-cli-0.6)) + #:phases + (modify-phases %standard-phases + (add-before 'check 'fix-test-warnings + (lambda _ + ;; Otherwise the test case will see the warning being emitted + ;; that "config" is deprecated. + (when (file-exists? ".cargo/config") + (rename-file ".cargo/config" + ".cargo/config.toml"))))))) + (home-page "https://github.com/webern/cargo-readme") + (synopsis + "Cargo subcommand to generate README.md content from doc comments") + (description + "This package provides a Cargo subcommand to generate README.md content from doc +comments.") + (license (list license:expat license:asl2.0)))) + (define-public cargo-with (package (name "cargo-with") |