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>
This commit is contained in:
Evgenii Lepikhin 2022-04-02 00:54:33 +03:00 committed by Efraim Flashner
parent acada2580f
commit 30cf5284b2
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -44364,8 +44364,40 @@ (define-public rust-predicates-tree-0.9
(("rust-predicates-core" ,rust-predicates-core-0.9) (("rust-predicates-core" ,rust-predicates-core-0.9)
("rust-treeline" ,rust-treeline-0.1)))))) ("rust-treeline" ,rust-treeline-0.1))))))
(define-public rust-pretty-0.11
(package
(name "rust-pretty")
(version "0.11.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "pretty" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1282l4pa9hhamvbnd5mjrwhdgcsjy1l1lj44i0m4pczsf1cd3br9"))))
(build-system cargo-build-system)
(arguments
`(#: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
"This crate provides functionality for defining pretty printers. It is
particularly useful for printing structured recursive data like trees.")
(license license:expat)))
(define-public rust-pretty-0.5 (define-public rust-pretty-0.5
(package (package
(inherit rust-pretty-0.11)
(name "rust-pretty") (name "rust-pretty")
(version "0.5.2") (version "0.5.2")
(source (source
@ -44375,18 +44407,11 @@ (define-public rust-pretty-0.5
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "1lzn7d60l79vsdwcfgrh6jmk193nzwh1j36r8p9cv3n8dyghs37n")))) (base32 "1lzn7d60l79vsdwcfgrh6jmk193nzwh1j36r8p9cv3n8dyghs37n"))))
(build-system cargo-build-system)
(arguments (arguments
`(#:skip-build? #t `(#:skip-build? #t
#:cargo-inputs #:cargo-inputs
(("rust-termcolor" ,rust-termcolor-0.3) (("rust-termcolor" ,rust-termcolor-0.3)
("rust-typed-arena" ,rust-typed-arena-1)))) ("rust-typed-arena" ,rust-typed-arena-1))))))
(home-page "https://github.com/Marwes/pretty.rs")
(synopsis "Pretty printing combinators for Rust")
(description
"This crate provides functionality for defining pretty printers. It is
particularly useful for printing structured recursive data like trees.")
(license license:expat)))
(define-public rust-pretty-assertions-0.7 (define-public rust-pretty-assertions-0.7
(package (package