aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-03-18 23:59:29 +0200
committerEfraim Flashner <efraim@flashner.co.il>2020-03-19 22:33:24 +0200
commit2d6fa1839993e381b4c9d6d3287f6be98af2847a (patch)
treeba958b9ff2ddbba19e5571a7490d5f8924c47816 /gnu
parentee7ef9cb8c3f340508fbfa1abab78bd07b0865e8 (diff)
downloadpatches-2d6fa1839993e381b4c9d6d3287f6be98af2847a.tar
patches-2d6fa1839993e381b4c9d6d3287f6be98af2847a.tar.gz
gnu: Add rust-dtoa-short-0.3.
* gnu/packages/crates-io.scm (rust-dtoa-short-0.3): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 258c4ebc62..eb98877725 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4239,6 +4239,31 @@ floating-point primitives to an @code{io::Write}.")
(base32
"0g96cap6si1g6wi62hsdk2fnj3sf5vd4i97zj6163j8hhnsl3n0d"))))))
+(define-public rust-dtoa-short-0.3
+ (package
+ (name "rust-dtoa-short")
+ (version "0.3.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "dtoa-short" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1wkn7ziqffq8hj0a411lgn7674ackzdk734ikp230rmp2f2hn0jr"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-dtoa" ,rust-dtoa-0.4))
+ #:cargo-development-inputs
+ (("rust-float-cmp" ,rust-float-cmp-0.3))))
+ (home-page "https://github.com/upsuper/dtoa-short")
+ (synopsis "Serialize float number and truncate to certain precision")
+ (description
+ "Serialize float number and truncate to certain precision in Rust.")
+ (license license:mpl2.0)))
+
(define-public rust-duct-0.13
(package
(name "rust-duct")