-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
61 lines (51 loc) · 1.46 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
[package]
name = "pitch-detector"
version = "0.3.1"
edition = "2021"
license = "MIT"
description = "A frequency and note detector library written in Rust."
repository = "https://github.com/mherrerarendon/pitch-detector"
readme = "README.md"
keywords = ["pitch", "detection", "frequency", "note"]
categories = ["multimedia::audio"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
exclude = [
"test_data/*",
".github/*",
".vscode/*",
]
[lib]
name = "pitch_detector"
path = "src/lib.rs"
[features]
test_utils = ["serde", "serde_json", "float-cmp"]
# hinted =["smoothed_z_score", "peak_finder"]
hinted =["peak_finder"]
plot = ["plotters"]
[[example]]
name = "spectrum_plot"
required-features = ["test_utils", "plot"]
[[example]]
name = "basic_usage"
required-features = ["hinted"]
[dependencies]
anyhow = "1.0.52"
rustfft = "6.0.1"
fitting = "0.3.0"
num-traits = { version = "0.2", default-features = false }
apodize = "1.0.0"
itertools = "0.10.3"
serde_json = {version = "1.0.74", optional = true}
serde = {version = "1.0.133", features = ["derive"], optional = true}
peak_finder = {version = "1.0.1", optional = true}
plotters = {version = "0.3.1", optional = true}
float-cmp = {version = "0.9.0", optional = true}
[dev-dependencies]
float-cmp = "0.9.0"
serde_json = "1.0.74"
serde = {version = "1.0.133", features = ["derive"]}
plotters = "0.3.1"
criterion = "0.3.5"
[[bench]]
name = "bench_pitch_detectors"
harness = false