gnu: Add rust-femme-2.

* gnu/packages/crates-io.scm (rust-femme-2): New variable.
(rust-femme-1): Inherit from above.
This commit is contained in:
Nicolas Goaziou 2020-12-20 12:42:24 +01:00
parent 77905166ce
commit 974ba2668b
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -9519,8 +9519,40 @@ (define-public rust-fancy-regex-0.3
supported in purely NFA-based implementations.")
(license license:expat)))
(define-public rust-femme-2
(package
(name "rust-femme")
(version "2.1.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "femme" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0d7h1lzbcrqcn8v5l6m7i15lkbbaaz394l6vavbr8nhs757s5w9a"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-cfg-if" ,rust-cfg-if-0.1)
("rust-js-sys" ,rust-js-sys-0.3)
("rust-log" ,rust-log-0.4)
("rust-serde" ,rust-serde-1)
("rust-serde-derive" ,rust-serde-derive-1)
("rust-serde-json" ,rust-serde-json-1)
("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)
("rust-web-sys" ,rust-web-sys-0.3))
#:cargo-development-inputs
(("rust-kv-log-macro" ,rust-kv-log-macro-1))))
(home-page "https://github.com/lrlna/femme")
(synopsis "Pretty-printer and @code{ndjson} logger for @code{log} crate")
(description
"This package provides a pretty-printer and @code{ndjson} logger for
@code{log} crate.")
(license (list license:expat license:asl2.0))))
(define-public rust-femme-1
(package
(inherit rust-femme-2)
(name "rust-femme")
(version "1.3.0")
(source
@ -9530,7 +9562,6 @@ (define-public rust-femme-1
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0spf66m22dvnz6x077znybk906lh4p5z30nh8c37mad2c3dc56jd"))))
(build-system cargo-build-system)
(arguments
`(#:tests? #false
#:cargo-inputs
@ -9543,13 +9574,7 @@ (define-public rust-femme-1
("rust-serde-derive" ,rust-serde-derive-1)
("rust-serde-json" ,rust-serde-json-1)
("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)
("rust-web-sys" ,rust-web-sys-0.3))))
(home-page "https://github.com/lrlna/femme")
(synopsis "Pretty-printer and @code{ndjson} logger for @code{log} crate")
(description
"This package provides a pretty-printer and @code{ndjson} logger for
@code{log} crate.")
(license (list license:expat license:asl2.0))))
("rust-web-sys" ,rust-web-sys-0.3))))))
(define-public rust-fern-0.6
(package