From 857f7d52b197b37f2980ed6f55824e3cb87b3eb3 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Wed, 6 Nov 2024 21:42:53 +0100 Subject: [PATCH] gnu: Add rust-smol-2. * gnu/packages/crates-io.scm (rust-smol-2): New variable. (rust-smol-1): Inherit from rust-smol-2. Change-Id: I1caf05832eb9bb0dfc52f3805c6fa07264d88158 --- gnu/packages/crates-io.scm | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index dc16bf3985..6aeaf2076a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -74785,8 +74785,37 @@ (define-public rust-smawk-0.3 monotone matrix.") (license license:expat))) +(define-public rust-smol-2 + (package + (name "rust-smol") + (version "2.0.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "smol" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "17srgkyzswns43cnqcfb1846a8nsna47qj7wrk1rj8c9c3id6fx3")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-async-channel" ,rust-async-channel-2) + ("rust-async-executor" ,rust-async-executor-1) + ("rust-async-fs" ,rust-async-fs-2) + ("rust-async-io" ,rust-async-io-2) + ("rust-async-lock" ,rust-async-lock-3) + ("rust-async-net" ,rust-async-net-2) + ("rust-async-process" ,rust-async-process-2) + ("rust-blocking" ,rust-blocking-1) + ("rust-futures-lite" ,rust-futures-lite-2)))) + (home-page "https://github.com/stjepang/smol") + (synopsis "Small and fast async runtime") + (description "This package provides a small and fast async runtime.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-smol-1 (package + (inherit rust-smol-2) (name "rust-smol") (version "1.2.5") (source @@ -74796,7 +74825,6 @@ (define-public rust-smol-1 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1r45zng0hymqx1kb2dmxkapbin7f9rhgrdcssz0q7rzka59kpkw5")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs @@ -74809,11 +74837,7 @@ (define-public rust-smol-1 ("rust-async-process" ,rust-async-process-1) ("rust-blocking" ,rust-blocking-1) ("rust-futures-lite" ,rust-futures-lite-1) - ("rust-once-cell" ,rust-once-cell-1)))) - (home-page "https://github.com/stjepang/smol") - (synopsis "Small and fast async runtime") - (description "This package provides a small and fast async runtime.") - (license (list license:asl2.0 license:expat)))) + ("rust-once-cell" ,rust-once-cell-1)))))) (define-public rust-smol-0.1 (package