-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
74 lines (66 loc) · 2.04 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[package]
name = "afplay"
version = "0.1.1"
edition = "2018"
description = "Audio playback library"
authors = ["Eduard Müller <[email protected]>"]
exclude = ["assets", "examples"]
categories = ["audio", "synth", "music", "gamedev"]
[dependencies]
# required
log = { version = "^0.4", features = [
"max_level_debug",
"release_max_level_info",
] }
lazy_static = { version = "^1.4" }
cfg-if = { version = "^1.0" }
crossbeam-channel = { version = "^0.5" }
crossbeam-queue = { version = "^0.3" }
dashmap = { version = "^5.4" }
basedrop = { version = "^0.1" }
sort = { version = "^0.8" }
audio_thread_priority = { version = "^0.32", default-features = false }
rubato = { version = "^0.15" }
rb = { version = "^0.4" }
symphonia = { version = "^0.5", features = ["aac", "alac", "mp3", "isomp4"] }
# optional
assert_no_alloc = { version = "^1.1", features = [
"warn_debug",
], optional = true }
dasp = { version = "^0.11", features = ["signal"], optional = true }
fundsp = { version = "^0.17", optional = true }
cubeb = { version = "^0.13", optional = true }
cpal = { version = "^0.15", optional = true, features = ["jack", "asio"] }
[target.'cfg(windows)'.dependencies]
windows = { version = "^0.56", features = [
"Win32_System_Com",
], optional = true }
[dev-dependencies]
device_query = { version = "^2.0" }
ctrlc = { version = "^3.2" }
[profile.release]
debug = 1 # debug info for profiling
# enable optimization for a few DSP packages that are else extremely slow in debug builds
[profile.dev.package.rubato]
opt-level = 2
[profile.dev.package.rustfft]
opt-level = 2
[profile.dev.package.realfft]
opt-level = 2
[features]
cpal-output = ["cpal"]
cubeb-output = ["cubeb", "windows"]
dasp-synth = ["dasp"]
fundsp-synth = ["fundsp"]
assert-allocs = ["assert_no_alloc"]
default = ["cpal-output", "dasp-synth", "fundsp-synth", "assert-allocs"]
[package.metadata.docs.rs]
all-features = true
[[example]]
name = "play-file"
[[example]]
name = "play-synth"
required-features = ["dasp-synth", "fundsp-synth"]
[[example]]
name = "play-interactive"
required-features = ["dasp-synth"]