From 6e6dac1bc2eb8927f3cb430eb6d0ef8b365456cb Mon Sep 17 00:00:00 2001 From: John Soo Date: Sat, 14 Dec 2019 18:04:31 -0800 Subject: [PATCH 097/206] gnu: Add rust-console-error-panic-hook-0.1. * gnu/packages/crates-io.scm (rust-console-error-panic-hook-0.1): New variable. --- gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 754b459c7d..079b749171 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -889,6 +889,33 @@ need compiler-rt intrinsics.") (license (list license:asl2.0 license:expat)))) +(define-public rust-console-error-panic-hook-0.1 + (package + (name "rust-console-error-panic-hook") + (version "0.1.6") + (source + (origin + (method url-fetch) + (uri (crate-uri "console_error_panic_hook" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "04d2narcrzk9bnddz17rr2l819l82pr0h6d98s2w9q236n87dndq")))) + (build-system cargo-build-system) + ;; (arguments + ;; `(#:cargo-inputs + ;; (("rust-cfg-if" ,rust-cfg-if-0.1) + ;; ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)))) + (home-page + "https://github.com/rustwasm/console_error_panic_hook") + (synopsis + "Logs panics to console.error") + (description + "This package provides a panic hook for @code{wasm32-unknown-unknown} +that logs panics to @code{console.error}") + (license `(,license:expat ,license:asl2.0)))) + (define-public rust-constant-time-eq-0.1 (package (name "rust-constant-time-eq") -- 2.24.0