aboutsummaryrefslogtreecommitdiff
path: root/crates/wasm/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'crates/wasm/Cargo.toml')
-rw-r--r--crates/wasm/Cargo.toml26
1 files changed, 26 insertions, 0 deletions
diff --git a/crates/wasm/Cargo.toml b/crates/wasm/Cargo.toml
new file mode 100644
index 0000000..8092566
--- /dev/null
+++ b/crates/wasm/Cargo.toml
@@ -0,0 +1,26 @@
+[package]
+name = "typerpunk-wasm"
+version = "0.1.0"
+edition = "2021"
+
+[lib]
+crate-type = ["cdylib"]
+
+[dependencies]
+typerpunk-core = { path = "../core", default-features = false, features = ["wasm", "serde"] }
+wasm-bindgen = { workspace = true }
+js-sys = { workspace = true }
+web-sys = { version = "0.3", features = [
+ "Document",
+ "Element",
+ "HtmlElement",
+ "Window",
+ "console",
+ "HtmlCanvasElement",
+ "CanvasRenderingContext2d",
+ "CssStyleDeclaration",
+ "MouseEvent",
+ "KeyboardEvent",
+] }
+serde = { workspace = true }
+console_error_panic_hook = "0.1" \ No newline at end of file