forked from phip1611/spectrum-analyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
60 lines (55 loc) · 1.83 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 = "spectrum-analyzer"
description = """
A simple and fast `no_std` library to get the frequency spectrum of a digital signal (e.g. audio) using FFT.
It follows the KISS principle and consists of simple building blocks/optional features.
"""
version = "1.2.3"
authors = ["Philipp Schuster <phip1611@gmail.com>"]
edition = "2021"
keywords = ["fft", "spectrum", "frequencies", "audio", "dsp"]
categories = ["multimedia", "no-std"]
readme = "README.md"
license = "MIT"
homepage = "https://github.com/phip1611/spectrum-analyzer"
repository = "https://github.com/phip1611/spectrum-analyzer"
documentation = "https://docs.rs/spectrum-analyzer"
exclude = [
"res",
"test",
".github"
]
[features]
# by default we use microfft-real: it's the fastest and totally fit's our needs.
# As of version 0.5.0 there is no advantage by using other implementations.
# They still exist mainly for educational purposes, testing during development
# and for possible future enhancements
default = ["microfft-real"]
# std
rustfft-complex = ["rustfft"]
# no_std
microfft-complex = ["microfft"]
# no_std, overall fastest
microfft-real = ["microfft"]
[dependencies]
rustfft = { version = "6.0", optional = true }
microfft = { version = "0.4", optional = true }
# approx. compare floats; not only in tests but also during runtime
float-cmp = "0.9"
# sin() cos() log10() etc for no_std-environments; these are not part of Core library
libm = "0.2"
[dev-dependencies]
# readmp3 files in tests and examples
minimp3 = "0.5"
# visualize spectrum in tests and examples
audio-visualizer = "0.3"
# get audio input in examples
cpal = "0.13"
# audio data buffering
ringbuffer = "0.8" # REQUIRES Rust Stable 1.55 because it uses "ringbuffer v0.8"
rand = "0.8" # for benchmark
# exit in examples
ctrlc = "3.2"
# otherwise FFT and other code is too slow
[profile.dev]
opt-level = 1