-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
63 lines (55 loc) · 1.99 KB
/
Copy pathCargo.toml
File metadata and controls
63 lines (55 loc) · 1.99 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
53
54
55
56
57
58
59
60
61
62
63
[package]
name = "anupars"
version = "0.3.0"
edition = "2021"
description = "a tiny backend-agnostic step-sequencer/live-coding environment that harnesses the power of RegEx."
authors = ["karnpapon <karnpapon@gmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://anupa.rs"
repository = "https://github.com/karnpapon/anupars"
[[bin]]
name = "anupars"
path = "src/main.rs"
[lib]
name = "anupars"
crate-type = ["cdylib", "rlib"]
[dependencies]
lazy_static = "1.5.0"
dirs = "5.0.1"
log = "0.4.22"
num-rational = { version = "0.4", default-features = false }
num-integer = "0.1"
num-traits = "0.2"
regex-lite = "0.1"
nom = { version = "7.1.3", optional = true }
nom_locate = { version = "4.0.0", optional = true }
rosc = { version = "0.8.1", optional = true }
fastrand = "2"
ringbuffer = "0.16.0"
arrayvec = "0.7.6"
symspell_rs = { version = "6.8.3" }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# enable `coremidi_send_timestamped` otherwise Ableton wont recognize the MIDI events sent by midir
# https://github.com/Boddlnagg/midir/issues/94
midir = { version = "0.10.3", features = ["coremidi_send_timestamped"] }
crossbeam = "0.8.4"
crossterm = { version = "0.28", features = ["event-stream"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
console_error_panic_hook = "0.1"
# getrandom 0.3 requires explicit opt-in for wasm32-unknown-unknown
getrandom = { version = "0.3", features = ["wasm_js"] }
web-sys = { version = "0.3", features = ["Window", "Performance"] }
[features]
osc = ["dep:nom_locate", "dep:rosc"]
midi_input = ["dep:nom"]
disspress = []
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O", "--enable-bulk-memory", "--enable-nontrapping-float-to-int"]
[profile.release]
panic = "abort" # Strip expensive panic clean-up logic
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "z" # Optimize for binary size
strip = true # Remove debug symbols