-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
92 lines (77 loc) · 2.11 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[package]
name = "beat-detector"
description = """
beat-detector detects beats in live audio, but can also be used for post
analysis of audio data. It is a library written in Rust that is
`no_std`-compatible and doesn't need `alloc`.
"""
version = "0.2.0"
authors = ["Philipp Schuster <[email protected]>"]
edition = "2021"
license = "MIT"
keywords = ["audio", "beat", "beat-detection"]
categories = ["multimedia::audio", "no-std"]
readme = "README.md"
homepage = "https://github.com/phip1611/beat-detector"
repository = "https://github.com/phip1611/beat-detector"
documentation = "https://docs.rs/beat-detector"
exclude = [
".cargo",
".editorconfig",
".github",
"check-build.sh",
"demo.gif",
"src/bin", # only internal binaries, if any
"res"
]
rust-version = "1.76.0"
[features]
default = ["recording"]
# Marker/helper
std = []
# Actual features
recording = ["std", "dep:cpal"]
[[bench]]
name = "beat_detection_bench"
harness = false
[[bench]]
name = "general"
harness = false
[[example]]
name = "live-input-minimal"
required-features = ["recording"]
[[example]]
name = "live-input-visualize"
required-features = ["recording"]
[dependencies]
# +++ NOSTD DEPENDENCIES +++
biquad = { version = "0.4", default-features = false } # lowpass filter
libm = { version = "0.2.8", default-features = false }
log = { version = "0.4", default-features = false }
ringbuffer = { version = "0.15.0", default-features = false }
# +++ STD DEPENDENCIES +++
cpal = { version = "0.15", default-features = false, features = [], optional = true }
[dev-dependencies]
assert2 = "0.3.14"
ctrlc = { version = "3.4", features = ["termination"] }
criterion = { version = "0.5", features = [] }
float-cmp = "0.10.0"
hound = "3.5.1"
itertools = "0.13.0"
simple_logger = "5.0"
minifb = "0.27.0"
rand = "0.8.5"
[profile.dev]
# otherwise many code is too slow
# remove when using the debugger
# opt-level = 1
[profile.release]
# Trimmed to maximum performance.
#
# These changes only affects examples and tests build inside this crate but
# not libraries that use this.
codegen-units = 1
lto = true
[profile.bench]
codegen-units = 1
lto = true