summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-09-22 14:51:33 +0200
committerRicardo Wurmus <rekado@elephly.net>2022-09-23 00:21:39 +0200
commit4b01a19a527fdf0a646d58658b506e54648a0d40 (patch)
tree25a3a92eea937e9910797160cc8ae61b70af78b2 /gnu
parent78c318636e4a13c6fc0348ab3a9d4a3821c53e65 (diff)
gnu: Add rust-console-log-0.2.
* gnu/packages/crates-io.scm (rust-console-log-0.2): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index eb5668b2f9..c2c65a7a4f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13072,6 +13072,30 @@ 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-0.2
+ (package
+ (name "rust-console-log")
+ (version "0.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "console_log" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (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))))
+
(define-public rust-console-log-0.1
(package
(name "rust-console-log")