From 2dfbec808a8d9b1f4d2e52fd19fac0eed0664189 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 16 Mar 2024 21:19:47 +0200 Subject: [PATCH] gnu: Add rust-numtoa-0.2. * gnu/packages/crates-io.scm (rust-numtoa-0.2): New variable. (rust-numtoa-0.1): Inherit from rust-numtoa-0.2. Change-Id: Ibd01cd04daffaa3edbcb5a92dcbb198fe5750b5f --- gnu/packages/crates-io.scm | 40 +++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f340fdad2e..84aa310d77 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -43866,8 +43866,40 @@ giga, kibi.") giga, kibi.") (license license:expat))) +(define-public rust-numtoa-0.2 + (package + (name "rust-numtoa") + (version "0.2.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "numtoa" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "03yhkhjb3d1zx22m3pgcbpk8baj0zzvaxqc25c584sdq77jw98ka")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags + '("--release" "--" + "--skip=base10_i128_array_too_small" + "--skip=base10_i16_array_too_small" + "--skip=base10_i32_array_too_small" + "--skip=base10_i64_array_too_small" + "--skip=base10_i8_array_too_small" + "--skip=base10_u128_array_too_small" + "--skip=base10_u16_array_too_small" + "--skip=base10_u32_array_too_small" + "--skip=base10_u64_array_too_small" + "--skip=base10_u8_array_too_small"))) + (home-page "https://gitlab.com/mmstick/numtoa") + (synopsis "Convert numbers into stack-allocated byte arrays") + (description + "This package can convert numbers into stack-allocated byte arrays.") + (license (list license:expat license:asl2.0)))) + (define-public rust-numtoa-0.1 (package + (inherit rust-numtoa-0.2) (name "rust-numtoa") (version "0.1.0") (source @@ -43878,13 +43910,7 @@ giga, kibi.") (sha256 (base32 "1vs9rhggqbql1p26x8nkha1j06wawwgb2jp5fs88b5gi7prvvy5q")))) - (build-system cargo-build-system) - (arguments '(#:tests? #f)) - (home-page "https://gitlab.com/mmstick/numtoa") - (synopsis "Convert numbers into stack-allocated byte arrays") - (description - "This package can convert numbers into stack-allocated byte arrays.") - (license (list license:expat license:asl2.0)))) + (arguments '(#:tests? #f)))) (define-public rust-oauth2-types-0.7 (package