https://github.com/ckampfe/console_log
A console_log macro for web_sys
https://github.com/ckampfe/console_log
Last synced: about 1 year ago
JSON representation
A console_log macro for web_sys
- Host: GitHub
- URL: https://github.com/ckampfe/console_log
- Owner: ckampfe
- License: bsd-3-clause
- Created: 2020-11-15T22:31:00.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-16T01:19:49.000Z (over 5 years ago)
- Last Synced: 2025-02-01T20:11:20.664Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# console_log
A `console_log` macro for `web_sys`:
```
console_log!();
console_log!("one");
console_log!("one", "two");
console_log!("one", "two", "three");
console_log!("one", "two", "three", "four");
console_log!("one", "two", "three", "four", "five");
console_log!("one", "two", "three", "four", "five", "six");
console_log!("one", "two", "three", "four", "five", "six", "seven");
console_log!("one", String::from("two"), true, 4u8, 5u16, 6u32, 7.0);
```
## testing
Either:
```
$ wasm-pack test --node
```
or
```
$ cargo install wasm-bindgen-cli
$ cargo test --target wasm32-unknown-unknown
```