3 releases
| 0.1.2 | Feb 20, 2021 |
|---|---|
| 0.1.1 | Feb 20, 2021 |
| 0.1.0 | Feb 5, 2021 |
#1091 in WebAssembly
8,745 downloads per month
Used in 6 crates
(3 directly)
9KB
56 lines
dbg! for wasm32
This micro-crate provides a drop-in replacement for std::dbg macro
that logs to console when compiled for wasm32-unknown-unknown and falls back to std::dbg on all other platforms.
Usage
Include this dependency in your Cargo.toml:
[dependencies]
wasm-rs-dbg = "0.1.2"
Then, in files where you want to use WebAssembly-enabled logging to console, use this import:
use wasm_rs_dbg::dbg;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Dependencies
~0–2.2MB
~41K SLoC