Get it running in Chrome!
This commit is contained in:
7
run-wasm/Cargo.toml
Normal file
7
run-wasm/Cargo.toml
Normal file
@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "run-wasm"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
cargo-run-wasm = "0.3"
|
9
run-wasm/src/main.rs
Normal file
9
run-wasm/src/main.rs
Normal file
@ -0,0 +1,9 @@
|
||||
fn main() {
|
||||
let css = r#"body {
|
||||
background-color: #000;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}"#;
|
||||
|
||||
cargo_run_wasm::run_wasm_with_css(css);
|
||||
}
|
Reference in New Issue
Block a user