diff options
author | Evgenii Lepikhin <e.lepikhin@corp.mail.ru> | 2022-04-02 00:54:33 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2022-05-30 11:13:51 +0300 |
commit | 30cf5284b2be9e363e624c42436ada524a63dc39 (patch) | |
tree | 42c0e74ac33701270fc0d2f2641316bb4273997a /gnu | |
parent | acada2580fa249cd3aad074c310ef2e6e1a9022f (diff) | |
download | guix-30cf5284b2be9e363e624c42436ada524a63dc39.tar guix-30cf5284b2be9e363e624c42436ada524a63dc39.tar.gz |
gnu: Add rust-pretty-0.11.
* gnu/packages/crates-io.scm (rust-pretty-0.11) New variable.
(rust-pretty-0.5): Inherit from rust-pretty-0.11.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1ffce53949..6d86b60bba 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -44364,23 +44364,30 @@ functions.") (("rust-predicates-core" ,rust-predicates-core-0.9) ("rust-treeline" ,rust-treeline-0.1)))))) -(define-public rust-pretty-0.5 +(define-public rust-pretty-0.11 (package (name "rust-pretty") - (version "0.5.2") + (version "0.11.2") (source (origin (method url-fetch) (uri (crate-uri "pretty" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "1lzn7d60l79vsdwcfgrh6jmk193nzwh1j36r8p9cv3n8dyghs37n")))) + (base32 "1282l4pa9hhamvbnd5mjrwhdgcsjy1l1lj44i0m4pczsf1cd3br9")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-termcolor" ,rust-termcolor-0.3) - ("rust-typed-arena" ,rust-typed-arena-1)))) + `(#:cargo-inputs + (("rust-arrayvec" ,rust-arrayvec-0.5) + ("rust-log" ,rust-log-0.4) + ("rust-termcolor" ,rust-termcolor-1) + ("rust-typed-arena" ,rust-typed-arena-2) + ("rust-unicode-segmentation" ,rust-unicode-segmentation-1)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.3) + ("rust-difference" ,rust-difference-2) + ("rust-env-logger" ,rust-env-logger-0.9) + ("rust-tempfile" ,rust-tempfile-3)))) (home-page "https://github.com/Marwes/pretty.rs") (synopsis "Pretty printing combinators for Rust") (description @@ -44388,6 +44395,24 @@ functions.") particularly useful for printing structured recursive data like trees.") (license license:expat))) +(define-public rust-pretty-0.5 + (package + (inherit rust-pretty-0.11) + (name "rust-pretty") + (version "0.5.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "pretty" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1lzn7d60l79vsdwcfgrh6jmk193nzwh1j36r8p9cv3n8dyghs37n")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-termcolor" ,rust-termcolor-0.3) + ("rust-typed-arena" ,rust-typed-arena-1)))))) + (define-public rust-pretty-assertions-0.7 (package (name "rust-pretty-assertions") |