diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-04 11:37:05 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:57:15 +0200 |
commit | 86415b84e19226d91c3f0d812e33d9b5618fbe9c (patch) | |
tree | 1dd1624ce0fac754899208986bdf5b9f56c8ad36 /gnu/packages | |
parent | 3c722d505c22e225999d8009700c4e3bd6d8d15e (diff) | |
download | guix-86415b84e19226d91c3f0d812e33d9b5618fbe9c.tar.gz |
gnu: Add rust-console-log-1.
* gnu/packages/crates-io.scm (rust-console-log-1): New variable. (rust-console-log-0.2): Inherit from rust-console-log-1. Change-Id: I907d1ec8c34901339a02a508b0a573c0968d3b21
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/crates-io.scm | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index bbc9395c34..af77d3c9c3 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -14018,8 +14018,32 @@ this to write Rust programs which can be customized by end users easily.") that logs panics to @code{console.error}.") (license (list license:expat license:asl2.0)))) +(define-public rust-console-log-1 + (package + (name "rust-console-log") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "console_log" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "03rwzvpg384y68j6hxm4h1bhzi7xcc5jdari8hxlvgzdwi0fv2my")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-log" ,rust-log-0.4) + ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2) + ("rust-web-sys" ,rust-web-sys-0.3)))) + (home-page "https://github.com/iamcodemaker/console_log") + (synopsis "Route Rust log messages to the browser's console") + (description + "This package provides a logging facility that routes Rust log messages to +the browser's console.") + (license (list license:expat license:asl2.0)))) + (define-public rust-console-log-0.2 (package + (inherit rust-console-log-1) (name "rust-console-log") (version "0.2.0") (source (origin @@ -14029,18 +14053,11 @@ that logs panics to @code{console.error}.") (sha256 (base32 "150li8pznpfpn4q0f7g9jwq2hnd5wik0w8378zaa1wffc5ckf6jh")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-log" ,rust-log-0.4) ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2) - ("rust-web-sys" ,rust-web-sys-0.3)))) - (home-page "https://github.com/iamcodemaker/console_log") - (synopsis "Route Rust log messages to the browser's console") - (description - "This package provides a logging facility that routes Rust log messages to -the browser's console.") - (license (list license:expat license:asl2.0)))) + ("rust-web-sys" ,rust-web-sys-0.3)))))) (define-public rust-console-log-0.1 (package |