gnu: Add rust-futures-lite-2.

* gnu/packages/crates-io.scm (rust-futures-lite-2): Add variable.
(rust-futures-lite-1): Inherit from rust-futures-lite-2.

Change-Id: I46772a91a10fba58351ee47c5acc8b11cb777f9b
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Herman Rimm 2024-01-30 16:25:03 +01:00 committed by Efraim Flashner
parent 0feececfe3
commit 7617ed5d76
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -25063,8 +25063,38 @@ (define-public rust-futures-join-macro-preview-0.3
@code{try_join!} macro.")
(license (list license:expat license:asl2.0))))
(define-public rust-futures-lite-2
(package
(name "rust-futures-lite")
(version "2.2.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "futures-lite" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1flj85i6xm0rjicxixmajrp6rhq8i4bnbzffmrd6h23ln8jshns4"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-fastrand" ,rust-fastrand-2)
("rust-futures-core" ,rust-futures-core-0.3)
("rust-futures-io" ,rust-futures-io-0.3)
("rust-memchr" ,rust-memchr-2)
("rust-parking" ,rust-parking-2)
("rust-pin-project-lite" ,rust-pin-project-lite-0.2))
#:cargo-development-inputs (("rust-spin-on" ,rust-spin-on-0.1)
("rust-waker-fn" ,rust-waker-fn-1))))
(home-page "https://github.com/smol-rs/futures-lite")
(synopsis "Futures, streams, and async I/O combinators")
(description
"This crate is a subset of @code{futures} that compiles an order of
magnitude faster, fixes minor warts in its API, fills in some obvious gaps,
and removes almost all unsafe code from it.")
(license (list license:asl2.0 license:expat))))
(define-public rust-futures-lite-1
(package
(inherit rust-futures-lite-2)
(name "rust-futures-lite")
(version "1.13.0")
(source
@ -25074,7 +25104,6 @@ (define-public rust-futures-lite-1
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1kkbqhaib68nzmys2dc8j9fl2bwzf2s91jfk13lb2q3nwhfdbaa9"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-fastrand" ,rust-fastrand-1)
@ -25085,14 +25114,7 @@ (define-public rust-futures-lite-1
("rust-pin-project-lite" ,rust-pin-project-lite-0.2)
("rust-waker-fn" ,rust-waker-fn-1))
#:cargo-development-inputs
(("rust-spin-on" ,rust-spin-on-0.1))))
(home-page "https://github.com/stjepang/futures-lite")
(synopsis "Futures, streams, and async I/O combinators")
(description
"This crate is a subset of @code{futures} that compiles an order of
magnitude faster, fixes minor warts in its API, fills in some obvious gaps,
and removes almost all unsafe code from it.")
(license (list license:asl2.0 license:expat))))
(("rust-spin-on" ,rust-spin-on-0.1))))))
(define-public rust-futures-lite-0.1
(package