summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranz Geffke <m@f-a.nz>2025-03-26 18:28:00 +0000
committerFranz Geffke <m@f-a.nz>2025-03-26 18:28:00 +0000
commit8a59f599ff8c478c1d483e6de1885035097f265e (patch)
treea1564335f347a1bd6ec7e33b1a09e821dbb58e33
parentb88a17789b8a843022e42828057ce4166d9b06be (diff)
px: rust-quanta: Added v0.12.5
-rw-r--r--px/packages/crates-io.scm33
1 files changed, 32 insertions, 1 deletions
diff --git a/px/packages/crates-io.scm b/px/packages/crates-io.scm
index f08e735..001e884 100644
--- a/px/packages/crates-io.scm
+++ b/px/packages/crates-io.scm
@@ -1401,4 +1401,35 @@ WASM and native applications.")
("rust-futures" ,rust-futures-0.3)
("rust-quickcheck" ,rust-quickcheck-1)
("rust-rand" ,rust-rand-0.8)
- ("rust-tempfile" ,rust-tempfile-3)))))) \ No newline at end of file
+ ("rust-tempfile" ,rust-tempfile-3))))))
+
+(define-public rust-quanta-0.12
+ (package
+ (name "rust-quanta")
+ (version "0.12.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "quanta" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "03kwh0xb7gr461jcjhrxvcj9157k1jyg2gyy0f4579nf4ilgxl9v"))))
+ (build-system cargo-build-system)
+ (arguments
+ ;; t1 should be greater than t0 by at least 14ms, was only 0ns (t0: 72038116156784, t1: 72038116152466)
+ `(#:tests? #f
+ #:cargo-inputs (("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8.16)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-prost-types" ,rust-prost-types-0.11)
+ ("rust-raw-cpuid" ,rust-raw-cpuid-11)
+ ("rust-wasi" ,rust-wasi-0.11)
+ ("rust-web-sys" ,rust-web-sys-0.3)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:cargo-development-inputs (("rust-average" ,rust-average-0.14)
+ ("rust-criterion" ,rust-criterion-0.3.3)
+ ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3))))
+ (home-page "https://github.com/metrics-rs/quanta")
+ (synopsis "high-speed timing library")
+ (description "This package provides high-speed timing library.")
+ (license license:expat))) \ No newline at end of file