diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-05-21 20:51:23 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-07-19 00:47:07 +0300 |
commit | d7bda5e97b5ade8607cdaddd9236597017ec82cf (patch) | |
tree | fef3e8b7d62967c1ac8a7c404cf37d351e491012 | |
parent | 856ffa23a82d29019eecd9204ed03c7dce1f4298 (diff) | |
download | guix-d7bda5e97b5ade8607cdaddd9236597017ec82cf.tar guix-d7bda5e97b5ade8607cdaddd9236597017ec82cf.tar.gz |
gnu: Add rust-wasm-streams-0.4.
* gnu/packages/crates-io.scm (rust-wasm-streams-0.4): New variable.
(rust-wasm-streams-0.3): Inherit from above.
Change-Id: I9c3499ae8f7615b4544497d95b4a704e3385ac4f
-rw-r--r-- | gnu/packages/crates-io.scm | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 5a16773897..719f1c10fd 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -88340,8 +88340,39 @@ attribute that is not in the shared backend crate.") "This package provides a low-level @code{WebAssembly} encoder.") (license license:asl2.0))) +(define-public rust-wasm-streams-0.4 + (package + (name "rust-wasm-streams") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "wasm-streams" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0ad17c59xb8fffsnbrqbyqz93hb66nzxhizpii31icb31g4w8pdn")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-futures-util" ,rust-futures-util-0.3) + ("rust-js-sys" ,rust-js-sys-0.3) + ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2) + ("rust-wasm-bindgen-futures" ,rust-wasm-bindgen-futures-0.4) + ("rust-web-sys" ,rust-web-sys-0.3)) + #:cargo-development-inputs + (("rust-pin-project" ,rust-pin-project-1) + ("rust-tokio" ,rust-tokio-1) + ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3) + ("rust-web-sys" ,rust-web-sys-0.3)))) + (home-page "https://github.com/MattiasBuelens/wasm-streams/") + (synopsis "Bridge between web streams and Rust streams using WebAssembly") + (description + "Bridging between web streams and Rust streams using WebAssembly.") + (license (list license:expat license:asl2.0)))) + (define-public rust-wasm-streams-0.3 (package + (inherit rust-wasm-streams-0.4) (name "rust-wasm-streams") (version "0.3.0") (source @@ -88351,7 +88382,6 @@ attribute that is not in the shared backend crate.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1iqa4kmhbsjj8k4q15i1x0x4p3xda0dhbg7zw51mydr4g129sq5l")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-futures-util" ,rust-futures-util-0.3) ("rust-js-sys" ,rust-js-sys-0.3) @@ -88361,12 +88391,7 @@ attribute that is not in the shared backend crate.") #:cargo-development-inputs (("rust-pin-project" ,rust-pin-project-1) ("rust-tokio" ,rust-tokio-1) ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3) - ("rust-web-sys" ,rust-web-sys-0.3)))) - (home-page "https://github.com/MattiasBuelens/wasm-streams/") - (synopsis "Bridge between web streams and Rust streams using WebAssembly") - (description - "Bridging between web streams and Rust streams using WebAssembly.") - (license (list license:expat license:asl2.0)))) + ("rust-web-sys" ,rust-web-sys-0.3)))))) (define-public rust-wasm-streams-0.2 (package |