3 releases

0.1.2 Feb 20, 2021
0.1.1 Feb 20, 2021
0.1.0 Feb 5, 2021

#1 in #wasm32

Download history 2588/week @ 2024-06-18 1044/week @ 2024-06-25 2537/week @ 2024-07-02 4167/week @ 2024-07-09 3598/week @ 2024-07-16 2361/week @ 2024-07-23 4675/week @ 2024-07-30 4010/week @ 2024-08-06 2851/week @ 2024-08-13 3622/week @ 2024-08-20 1566/week @ 2024-08-27 426/week @ 2024-09-03 307/week @ 2024-09-10 2507/week @ 2024-09-17 2718/week @ 2024-09-24 6703/week @ 2024-10-01

12,278 downloads per month
Used in 6 crates (3 directly)

MIT/Apache

9KB
56 lines

dbg! for wasm32

Crate API Chat

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

Dependencies

~0–2.3MB
~43K SLoC