diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-12-21 00:36:03 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-01-04 19:29:18 +0100 |
commit | 5b15b42e3f90aea14bbbba38d2bb26574059daa8 (patch) | |
tree | df4eeba5bc159d3a22c8fea8ec4e160279270dc1 /gnu | |
parent | 7b9967176cb3a78e0192f0d6b08950ed19cf5cf9 (diff) | |
download | guix-5b15b42e3f90aea14bbbba38d2bb26574059daa8.tar.gz guix-5b15b42e3f90aea14bbbba38d2bb26574059daa8.zip |
gnu: Add rust-async-io-1 and rust-async-net-1.
* gnu/packages/crates-io.scm (rust-async-io-1):
(rust-async-net-1): New variables.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f3f039605d..71f8eeb7e9 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1315,6 +1315,49 @@ Rust.") and Rust's modern asynchronous IO types.") (license (list license:expat license:asl2.0)))) +(define-public rust-async-io-1 + (package + (name "rust-async-io") + (version "1.3.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "async-io" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1zg0bvb58615qar6ih3ddr1cyjh0fsrfdhpy90z1qxjnfpqgh5ck")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-concurrent-queue" ,rust-concurrent-queue-1) + ("rust-fastrand" ,rust-fastrand-1) + ("rust-futures-lite" ,rust-futures-lite-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-log" ,rust-log-0.4) + ("rust-nb-connect" ,rust-nb-connect-1) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-parking" ,rust-parking-2) + ("rust-polling" ,rust-polling-2) + ("rust-vec-arena" ,rust-vec-arena-1) + ("rust-waker-fn" ,rust-waker-fn-1) + ("rust-winapi" ,rust-winapi-0.3)) + #:cargo-development-inputs + (("rust-async-channel" ,rust-async-channel-1) + ("rust-async-net" ,rust-async-net-1) + ("rust-inotify" ,rust-inotify-0.8) + ("rust-nix" ,rust-nix-0.18) + ("rust-signal-hook" ,rust-signal-hook-0.1) + ("rust-tempfile" ,rust-tempfile-3) + ("rust-timerfd" ,rust-timerfd-1) + ("rust-uds-windows" ,rust-uds-windows-0.1)))) + (home-page "https://github.com/stjepang/async-io") + (synopsis "Async I/O and timers") + (description + "This crate provides two tools: Async, an adapter for standard networking +types (and many other types) to use in async programs, and Timer, a future +that expires at a point in time.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-async-log-1 (package (name "rust-async-log") @@ -1388,6 +1431,30 @@ crate.") (description "Macros for async-std.") (license (list license:expat license:asl2.0)))) +(define-public rust-async-net-1 + (package + (name "rust-async-net") + (version "1.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "async-net" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1rgvvqb1l86hawl1j0jfyzq35yracbbh29109131izmghmf4gph6")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-async-io" ,rust-async-io-1) + ("rust-blocking" ,rust-blocking-1) + ("rust-fastrand" ,rust-fastrand-1) + ("rust-futures-lite" ,rust-futures-lite-1)))) + (home-page "https://github.com/stjepang/async-net") + (synopsis "Async networking primitives for TCP/UDP/Unix communication") + (description + "Async networking primitives for TCP/UDP/Unix communication") + (license (list license:asl2.0 license:expat)))) + (define-public rust-async-std-0.99 (package (name "rust-async-std") |