diff options
author | Jaeme Sifat <jaeme@runbox.com> | 2024-01-20 18:30:21 -0500 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:58:27 +0200 |
commit | 7dec57f710810f97c770c8247d4610d26aaba4b5 (patch) | |
tree | 178a3532fa929e83c0037c651e06fa301af0de66 | |
parent | ea4ff3c912f8537efc3afe5d62d87117cf24df0d (diff) | |
download | guix-7dec57f710810f97c770c8247d4610d26aaba4b5.tar.gz |
gnu: Add rust-spin-sleep-1.
* gnu/packages/crates-io.scm (rust-spin-sleep-1): New variable. Change-Id: Ic8616daadbbb797627fcfa79a3bfd9d196557a24 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r-- | gnu/packages/crates-io.scm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ccd82c2b0a..68c3efd21a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -61918,6 +61918,29 @@ future to wake it up, it continuously polls the future until the future is ready. This will probably use a lot of CPU, so be careful when you use it.") (license (list license:asl2.0 license:expat)))) +(define-public rust-spin-sleep-1 + (package + (name "rust-spin-sleep") + (version "1.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "spin_sleep" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0zrllbf1ksc6srjgbslk2fn5c9fp5f1rrrw2n0301xza9639g2in")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-windows-sys" ,rust-windows-sys-0.52)) + #:cargo-development-inputs (("rust-approx" ,rust-approx-0.5)))) + (home-page "https://github.com/alexheretic/spin-sleep") + (synopsis "Accurate sleeping and spinning") + (description + "This library adds a middle ground, using a configurable native accuracy setting +allowing @code{thread::sleep} to wait the bulk of a sleep time, and spin the final +section to guarantee accuracy.") + (license license:asl2.0))) + (define-public rust-spinning-top-0.2 (package (name "rust-spinning-top") |