Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
96 lines (84 loc) · 2.82 KB
/
Copy pathCargo.toml
File metadata and controls
96 lines (84 loc) · 2.82 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[workspace]
resolver = "3"
exclude = ["cpp", "fuzz", "crates/sonora-sys", "crates/sonora-bench"]
members = [
"crates/sonora",
"crates/sonora-ffi",
"crates/sonora-common-audio",
"crates/sonora-aec3",
"crates/sonora-agc2",
"crates/sonora-ns",
"crates/sonora-simd",
"crates/sonora-fft",
]
[workspace.package]
edition = "2024"
rust-version = "1.91"
license = "BSD-3-Clause"
repository = "https://github.com/dignifiedquire/sonora"
[workspace.dependencies]
# Internal crates
sonora = { version = "0.3.0", path = "crates/sonora" }
sonora-ffi = { version = "0.3.0", path = "crates/sonora-ffi" }
sonora-common-audio = { version = "0.3.0", path = "crates/sonora-common-audio" }
sonora-aec3 = { version = "0.3.0", path = "crates/sonora-aec3" }
sonora-agc2 = { version = "0.3.0", path = "crates/sonora-agc2" }
sonora-ns = { version = "0.3.0", path = "crates/sonora-ns" }
sonora-simd = { version = "0.3.0", path = "crates/sonora-simd" }
sonora-fft = { version = "0.3.0", path = "crates/sonora-fft" }
# External dependencies
cpufeatures = "0.3"
derive_more = { version = "2", features = ["debug"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
bytemuck = { version = "1", features = ["derive"] }
proptest = "1.11"
test-strategy = "0.4"
criterion = { version = "0.8", features = ["html_reports"] }
anyhow = "1"
clap = { version = "4", features = ["derive"] }
cpal = "0.18"
ctrlc = { version = "3", features = ["termination"] }
hound = "3"
ringbuf = "0.5"
[workspace.lints.rust]
unexpected_cfgs = { level = "deny", check-cfg = ["cfg(docsrs)"] }
elided_lifetimes_in_paths = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
missing_debug_implementations = "warn"
[workspace.lints.clippy]
or_fun_call = "warn"
use_self = "warn"
unused_async = "warn"
absolute_paths = "warn"
manual_let_else = "warn"
allow_attributes_without_reason = "warn"
mod_module_files = "deny"
# DSP: exact C++ float constants for bit-exact output
excessive_precision = "allow"
# DSP: exact C++ table values near known constants (e.g. PI)
approx_constant = "allow"
# Match C++ optimization level: -O3, LTO, single codegen unit
[profile.release]
lto = "thin"
codegen-units = 1
[profile.bench]
lto = "thin"
codegen-units = 1
debug = true
# Optimize the echo canceller's crates in test builds (`cargo test`, and
# `cargo nextest`, which builds through it). Unoptimized, the no_allocation
# scenarios and the AEC3 unit tests take most of the test time, above all on
# the emulated Android CI targets. Debug assertions and overflow checks stay
# on, because the test profile inherits them from dev.
[profile.test.package.sonora]
opt-level = 3
[profile.test.package.sonora-aec3]
opt-level = 3
[profile.test.package.sonora-common-audio]
opt-level = 3
[profile.test.package.sonora-fft]
opt-level = 3
[profile.test.package.sonora-simd]
opt-level = 3