me
/
guix
Archived
1
0
Fork 0

gnu: Add rust-ufmt-0.2.

* gnu/packages/crates-io.scm (rust-ufmt-0.2): New variable.
(rust-ufmt-0.1): Inherit from rust-ufmt-0.2.

Change-Id: I444e6792d588a0ff4af30747eceb878913640f14
master
Efraim Flashner 2024-03-31 14:37:15 +03:00
parent aa7e62b6ea
commit 45829a0fb0
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 24 additions and 7 deletions

View File

@ -83578,8 +83578,31 @@ with the Unicode character database.")
(license (list license:asl2.0 (license (list license:asl2.0
license:expat)))) license:expat))))
(define-public rust-ufmt-0.2
(package
(name "rust-ufmt")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "ufmt" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "17dbpq5r09mcpalra2hmpgb2ly282s6xjsb4il8fjmrbq1p88r0s"))))
(build-system cargo-build-system)
(arguments
`(#:tests? #f ; method cannot be called on `String` due to unsatisfied trait bounds
#:cargo-inputs (("rust-ufmt-macros" ,rust-ufmt-macros-0.3)
("rust-ufmt-write" ,rust-ufmt-write-0.1))))
(home-page "https://github.com/japaric/ufmt")
(synopsis "Faster and panic-free alternative to @code{core::fmt}")
(description "This package provides a (6-40x) smaller, (2-9x) faster and
panic-free alternative to @code{core::fmt}.")
(license (list license:expat license:asl2.0))))
(define-public rust-ufmt-0.1 (define-public rust-ufmt-0.1
(package (package
(inherit rust-ufmt-0.2)
(name "rust-ufmt") (name "rust-ufmt")
(version "0.1.2") (version "0.1.2")
(source (source
@ -83590,19 +83613,13 @@ with the Unicode character database.")
(sha256 (sha256
(base32 (base32
"1pbc0gcfi7m21ly00x460pv1k2h12zb184f7wpcckpqj6g3c1lri")))) "1pbc0gcfi7m21ly00x460pv1k2h12zb184f7wpcckpqj6g3c1lri"))))
(build-system cargo-build-system)
(arguments (arguments
`(#:cargo-test-flags `(#:cargo-test-flags
'("--release" "--lib" "--bins" "--tests") '("--release" "--lib" "--bins" "--tests")
#:cargo-inputs #:cargo-inputs
(("rust-proc-macro-hack" ,rust-proc-macro-hack-0.5) (("rust-proc-macro-hack" ,rust-proc-macro-hack-0.5)
("rust-ufmt-macros" ,rust-ufmt-macros-0.2) ("rust-ufmt-macros" ,rust-ufmt-macros-0.2)
("rust-ufmt-write" ,rust-ufmt-write-0.1)))) ("rust-ufmt-write" ,rust-ufmt-write-0.1))))))
(home-page "https://github.com/japaric/ufmt")
(synopsis "Faster and panic-free alternative to @code{core::fmt}")
(description "This package provides a (6-40x) smaller, (2-9x) faster and
panic-free alternative to @code{core::fmt}.")
(license (list license:expat license:asl2.0))))
(define-public rust-ufmt-macros-0.3 (define-public rust-ufmt-macros-0.3
(package (package