From 92d03ec8638a2831cf3447b6b587435fdcb7bb83 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 9 Dec 2020 15:26:33 +0100 Subject: [PATCH] gnu: Add rust-utf8-width-0.1. * gnu/packages/crates-io.scm (rust-utf8-width-0.1): New variable. --- gnu/packages/crates-io.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ef911cd99b..aa48315b5e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -33940,6 +33940,25 @@ (define-public rust-utf8-ranges-0.1 `(#:cargo-development-inputs (("rust-quickcheck" ,rust-quickcheck-0.2)))))) +(define-public rust-utf8-width-0.1 + (package + (name "rust-utf8-width") + (version "0.1.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "utf8-width" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1ylf5mvzck81iszchxyqmhwimkcdqv7jhazvd454g911cchsqwch")))) + (build-system cargo-build-system) + (home-page "https://magiclen.org/utf8-width") + (synopsis "Determine the width of a UTF-8 character") + (description + "This package determines the width of a UTF-8 character by providing its +first byte.") + (license license:expat))) + (define-public rust-utf8parse-0.1 (package (name "rust-utf8parse")