From 6043b5499c284d05ee70b39e9cb11439ccb179b3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 24 Oct 2023 08:48:49 +0300 Subject: [PATCH] gnu: Add rust-miow-0.6. * gnu/packages/crates-io.scm (rust-miow-0.6): New variable. (rust-miow-0.5): Inherit from rust-miow-0.6. Change-Id: I1c31c3fe9f081f1d9da6dab4d13fe40733092f08 --- gnu/packages/crates-io.scm | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index fd0280dab6..5a4650b62b 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -41995,8 +41995,34 @@ possible over the OS abstractions.") "Unix domain socket bindings for mio.") (license (list license:asl2.0 license:expat)))) +(define-public rust-miow-0.6 + (package + (name "rust-miow") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "miow" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0i307jyhxnhgzj148cdb9zq59rhlhr1b65g142g9z9r01d1pd7rm")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-windows-sys" ,rust-windows-sys-0.48)) + #:cargo-development-inputs + (("rust-rand" ,rust-rand-0.8) + ("rust-socket2" ,rust-socket2-0.5)))) + (home-page "https://github.com/yoshuawuyts/miow") + (synopsis "Rust I/O library for Windows") + (description + "This package provides a zero overhead I/O library for Windows, focusing on +IOCP and Async I/O abstractions.") + (license (list license:expat license:asl2.0)))) + (define-public rust-miow-0.5 (package + (inherit rust-miow-0.6) (name "rust-miow") (version "0.5.0") (source @@ -42006,20 +42032,12 @@ possible over the OS abstractions.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "08qi8xm2zf8dqacdbnrp19aqk2xiwmw75n1mpq43rqsmysibrzsj")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-windows-sys" ,rust-windows-sys-0.42)) #:cargo-development-inputs (("rust-rand" ,rust-rand-0.8) - ("rust-socket2" ,rust-socket2-0.4)))) - (home-page "https://github.com/alexcrichton/miow") - (synopsis "Rust I/O library for Windows") - (description - "This package provides a zero overhead I/O library for Windows, focusing on -IOCP and Async I/O abstractions.") - (license (list license:asl2.0 - license:expat)))) + ("rust-socket2" ,rust-socket2-0.4)))))) (define-public rust-miow-0.4 (package