gnu: Add rust-unicode-truncate-0.2.
* gnu/packages/crates-io.scm (rust-unicode-truncate): New variable. Change-Id: I9428c1d2fa463fd6254f1c1e0f52568ed77989bc Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
deb2eec341
commit
c9691f7908
1 changed files with 22 additions and 0 deletions
|
@ -81729,6 +81729,28 @@ described in Unicode Standard Annex #15.")
|
||||||
boundaries according to Unicode Standard Annex #29 rules.")
|
boundaries according to Unicode Standard Annex #29 rules.")
|
||||||
(license (list license:expat license:asl2.0))))
|
(license (list license:expat license:asl2.0))))
|
||||||
|
|
||||||
|
(define-public rust-unicode-truncate-0.2
|
||||||
|
(package
|
||||||
|
(name "rust-unicode-truncate")
|
||||||
|
(version "0.2.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "unicode-truncate" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32 "0hlf6k1d7s1qqdvhxwh4xl8wd1wvqm0vr0pazxq74jksbz5fajx0"))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:cargo-inputs (("rust-unicode-width" ,rust-unicode-width-0.1))
|
||||||
|
#:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.3))))
|
||||||
|
(home-page "https://github.com/Aetf/unicode-truncate")
|
||||||
|
(synopsis "Unicode-aware `str` truncate")
|
||||||
|
(description
|
||||||
|
"This package provides a unicode-aware algorithm to pad or truncate `str`
|
||||||
|
in terms of displayed width.")
|
||||||
|
(license (list license:expat license:asl2.0))))
|
||||||
|
|
||||||
(define-public rust-unicode-width-0.1
|
(define-public rust-unicode-width-0.1
|
||||||
(package
|
(package
|
||||||
(name "rust-unicode-width")
|
(name "rust-unicode-width")
|
||||||
|
|
Reference in a new issue