[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/11: gnu: Add rust-unicode-truncate-1.
From: |
guix-commits |
Subject: |
06/11: gnu: Add rust-unicode-truncate-1. |
Date: |
Tue, 3 Dec 2024 14:45:40 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 942f5de02b9c36f15e716b3295c9d32c136cabae
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Dec 3 20:27:58 2024 +0200
gnu: Add rust-unicode-truncate-1.
* gnu/packages/crates-io.scm (rust-unicode-truncate-1): New variable.
(rust-unicode-truncate-0.2): Inherit from rust-unicode-truncate-1.
Change-Id: I21c2f52eae8837f897216263ce46844bf97d28e1
---
gnu/packages/crates-io.scm | 33 ++++++++++++++++++++++++++++-----
1 file changed, 28 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index dd870a20f6..5e66e0293c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -91980,21 +91980,28 @@ described in Unicode Standard Annex #15.")
boundaries according to Unicode Standard Annex #29 rules.")
(license (list license:expat license:asl2.0))))
-(define-public rust-unicode-truncate-0.2
+(define-public rust-unicode-truncate-1
(package
(name "rust-unicode-truncate")
- (version "0.2.0")
+ (version "1.1.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "unicode-truncate" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0hlf6k1d7s1qqdvhxwh4xl8wd1wvqm0vr0pazxq74jksbz5fajx0"))))
+ (base32 "1gr7arjjhrhy8dww7hj8qqlws97xf9d276svr4hs6pxgllklcr5k"))))
(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))))
+ `(#:cargo-test-flags
+ '("--release" "--"
+ "--skip=tests::truncate_centered::family_stays_together"
+ "--skip=tests::truncate_end::family_stays_together"
+ "--skip=tests::truncate_start::family_stays_together")
+ #:cargo-inputs (("rust-itertools" ,rust-itertools-0.13)
+ ("rust-unicode-segmentation"
,rust-unicode-segmentation-1)
+ ("rust-unicode-width" ,rust-unicode-width-0.1))
+ #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.5))))
(home-page "https://github.com/Aetf/unicode-truncate")
(synopsis "Unicode-aware `str` truncate")
(description
@@ -92002,6 +92009,22 @@ boundaries according to Unicode Standard Annex #29
rules.")
in terms of displayed width.")
(license (list license:expat license:asl2.0))))
+(define-public rust-unicode-truncate-0.2
+ (package
+ (inherit rust-unicode-truncate-1)
+ (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"))))
+ (arguments
+ `(#:cargo-inputs (("rust-unicode-width" ,rust-unicode-width-0.1))
+ #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.3))))))
+
(define-public rust-unicode-width-0.2
(package
(name "rust-unicode-width")
- branch rust-team updated (5c3200d303 -> 41c0ed9981), guix-commits, 2024/12/03
- 02/11: gnu: Add rust-bcrypt-pbkdf-0.10., guix-commits, 2024/12/03
- 11/11: gnu: Add speakersafetyd., guix-commits, 2024/12/03
- 04/11: gnu: Add rust-ssh-key-0.6., guix-commits, 2024/12/03
- 01/11: gnu: Add rust-ssh-encoding-0.2., guix-commits, 2024/12/03
- 06/11: gnu: Add rust-unicode-truncate-1.,
guix-commits <=
- 07/11: gnu: Add rust-asyncgit-0.26., guix-commits, 2024/12/03
- 08/11: gnu: gitui: Update to 0.26.3., guix-commits, 2024/12/03
- 05/11: gnu: Add rust-two-face-0.4., guix-commits, 2024/12/03
- 03/11: gnu: Add rust-ssh-cipher-0.2., guix-commits, 2024/12/03
- 09/11: gnu: just: Update to 1.37.0., guix-commits, 2024/12/03
- 10/11: gnu: rust-ordered-float-4: Update to 4.5.0., guix-commits, 2024/12/03