diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-12-20 13:03:15 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-01-03 22:06:35 +0100 |
commit | 3fd8fa55cd9855ca3e67b8d96a45189cefa28ab5 (patch) | |
tree | e3725f01c7318fe11b452208c84f62a850794ac2 | |
parent | cb0c8d1209e2273b6890cdeea207a384bac571ce (diff) | |
download | guix-3fd8fa55cd9855ca3e67b8d96a45189cefa28ab5.tar.gz guix-3fd8fa55cd9855ca3e67b8d96a45189cefa28ab5.zip |
gnu: Add rust-spin-on-0.1.
* gnu/packages/crates-io.scm (rust-spin-on-0.1): New variable.
-rw-r--r-- | gnu/packages/crates-io.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1371c9f72e..662e8a4245 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -29986,6 +29986,30 @@ initializers are available.") "07ywqn1vrpi3c43fmvsx7pawk9h3rb77yyqbnhap2micl454kb6f")))) (arguments '(#:skip-build? #t)))) +(define-public rust-spin-on-0.1 + (package + (name "rust-spin-on") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "spin-on" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "18idc7jfa4m2cap721nh5lva19z3ykjyz1w2hfm6960vshz10vh7")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-pin-utils" ,rust-pin-utils-0.1)))) + (home-page "https://crates.io/crates/spin_on") + (synopsis "Simple, inefficient Future executor") + (description + "This crate contains what aims to be the simplest possible implementation +of a valid executor. Instead of nicely parking the thread and waiting for the +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-spmc-0.3 (package (name "rust-spmc") |