-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
52 lines (46 loc) · 1.27 KB
/
Cargo.toml
File metadata and controls
52 lines (46 loc) · 1.27 KB
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
43
44
45
46
47
48
49
50
51
52
[package]
name = "rustfmsynth"
version = "0.1.0"
edition = "2021"
[dependencies]
# --- Native only ---
cpal = { version = "0.15.3", optional = true }
midir = { version = "0.10.0", optional = true }
device_query = { version = "3.0.1", optional = true }
rand = { version = "0.9", optional = true, default-features = false, features = [
"small_rng",
] }
# --- WebAssembly only ---
wasm-bindgen = { version = "0.2", features = [
"serde-serialize",
], optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0" }
serde-wasm-bindgen = { version = "0.6", optional = true }
fastrand = { version = "2.3.0", optional = true }
once_cell = { version = "1.17.0", optional = true }
hashbrown = { version = "0.15.2", optional = true }
js-sys = { version = "0.3", optional = true }
web-sys = { version = "0.3", features = ["console"], optional = true }
# --- Features ---
[features]
default = ["native"]
native = ["cpal", "midir", "device_query", "rand"]
wasm = [
"wasm-bindgen",
"fastrand",
"once_cell",
"hashbrown",
"js-sys",
"serde",
"serde-wasm-bindgen",
"web-sys",
"rand",
]
[lib]
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
[package.metadata.wasm-pack.profile.release]
wasm-opt = true
[profile.dev]
panic = "abort"