aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")