aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2023-01-06 19:43:20 +0300
committerLudovic Courtès <ludo@gnu.org>2023-06-08 23:16:09 +0200
commitd33275a3a1fb4ca6409b74e280cb683708e58abd (patch)
treef16a4406cbda6c91d9f83978a07d8bffa09fd035 /gnu/packages
parent42ea60b7dddf67bb1c3792cbe943b5c4d318733d (diff)
downloadguix-d33275a3a1fb4ca6409b74e280cb683708e58abd.tar.gz
guix-d33275a3a1fb4ca6409b74e280cb683708e58abd.zip
gnu: Add rust-uom.
* gnu/packages/crates-io.scm (rust-uom-0.34): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index af77a40257..3877f6c977 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -14304,6 +14304,40 @@ to the @code{is_x86_feature_detected!} macro.")
(description "This package provides bindings to Google's cpu profiler.")
(license license:bsd-2)))
+(define-public rust-uom-0.34
+ (package
+ (name "rust-uom")
+ (version "0.34.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "uom" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "190n79b5ywa9w0j13ld0q6dphz7vzsjkwrpp8pjnwrczsvfhxxg8"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-num-complex" ,rust-num-complex-0.4)
+ ("rust-num-rational" ,rust-num-rational-0.4)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-typenum" ,rust-typenum-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-num-bigint" ,rust-num-bigint-0.4))
+ #:cargo-development-inputs (("rust-approx" ,rust-approx-0.5)
+ ("rust-quickcheck" ,rust-quickcheck-0.8)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-static-assertions" ,rust-static-assertions-1))))
+ (home-page "https://github.com/iliekturtles/uom")
+ (synopsis "Units of measurement")
+ (description
+ "@code{uom} (Units of measurement) is a crate that does automatic type-safe
+zero-cost dimensional analysis. You can create your own systems or use the pre-built
+International System of Units (SI) which is based on the International System of
+Quantities (ISQ) and includes numerous quantities (length, mass, time, ...) with
+conversion factors for even more numerous measurement units (meter, kilometer, foot,
+mile, ...).")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-crates-index-0.18
(package
(name "rust-crates-index")