-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
52 lines (45 loc) · 1.9 KB
/
Copy pathCargo.toml
File metadata and controls
52 lines (45 loc) · 1.9 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 = "kwiet-dsp"
version = "0.1.0"
edition = "2021"
rust-version = "1.75"
license = "Apache-2.0"
description = "Kwiet DSP engine exposed through a stable C ABI"
publish = false
[lib]
name = "kwiet_dsp"
# rlib en plus du cdylib pour que les exemples (calibration hors ligne) puissent
# appeler exactement l'ABI que l'APO utilise.
crate-type = ["cdylib", "rlib"]
[dev-dependencies]
hound = "3.5"
[dependencies]
# DeepFilterNet3. La version publiée sur crates.io (0.2.5, 2022) est encore
# DFN2 : on prend donc le dépôt. `tract` = inférence ONNX, `default-model` =
# modèle DFN3 embarqué (7,6 Mo) exposé par DfParams::default().
deep_filter = { git = "https://github.com/Rikorose/DeepFilterNet", default-features = false, features = ["tract", "default-model"] }
ndarray = "0.15"
# WebRTC's AEC3, ported to pure Rust (BSD-3-Clause). Echo is a correlated copy
# of a signal we are handed, so an adaptive filter removes it; asking the
# denoiser to do it would mean asking it to erase speech.
sonora = "0.2"
# Épinglage de la famille tract. deep_filter déclare "^0.21.4", mais tract a
# renommé un champ public (`symbol_table` -> `symbols`) dans une version que
# cargo considère compatible : résolu en 0.21.17, deep_filter ne compile plus.
# On force donc la résolution ici, au niveau du manifeste — `cargo update
# --precise` ne suffit pas, il downgrade crate par crate et casse la cohérence
# de la famille. Ces dépendances ne sont pas utilisées directement.
tract-core = "=0.21.4"
tract-hir = "=0.21.4"
tract-onnx = "=0.21.4"
tract-pulse = "=0.21.4"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
# NOTE: panic = "abort" is deliberately NOT set. This library is loaded inside
# audiodg.exe; aborting would kill system audio. Every extern "C" entry point
# catches unwinds and reports an error code instead, so the APO can fail open
# to passthrough.
[lints.clippy]
undocumented_unsafe_blocks = "warn"