Get it running in Chrome!

This commit is contained in:
2024-04-22 21:10:09 -07:00
parent aae336ca66
commit 042f2dca79
11 changed files with 1920 additions and 25 deletions

7
run-wasm/Cargo.toml Normal file
View 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
View 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);
}