-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
42 lines (37 loc) · 822 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[package]
name = "wasm-boilerplate"
description = "wasm example with easy access"
repository = "https://github.com/rottier/react-wasm-vite-boilerplate"
license = "Apache-2.0"
version = "0.1.0"
authors = ["rottier <[email protected]>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
path = "./src/wasm/lib.rs"
[dependencies]
wasm-bindgen = "0.2"
js-sys = "0.3"
[dependencies.web-sys]
version = "0.3"
features = [
"Window",
"console",
"Document",
"Element",
"HtmlBodyElement",
'AudioContext',
'AudioDestinationNode',
'AudioNode',
'AudioParam',
'GainNode',
'OscillatorNode',
'OscillatorType',
]
[dev-dependencies]
wasm-bindgen-test = "0.3.34"
cargo-watch = "8.4"
wasm-pack="0.13.0"
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"