[package]
authors = [
"Maximilian Krüger <kruemaxi@gmail.com>",
"Markus Mayer <widemeadows@gmail.com>",
]
categories = ["science", "multimedia::audio", "mathematics", "no-std"]
description = "Short-time Fourier transform (STFT) and inverse STFT: streaming and batch spectrograms, a rich window library, mel spectrograms and MFCCs."
documentation = "https://docs.rs/ruststft"
edition = "2021"
homepage = "https://github.com/sunsided/stft"
keywords = ["dsp", "fft", "stft", "spectrogram", "mfcc"]
license = "MIT OR Apache-2.0"
name = "ruststft"
readme = "README.md"
repository = "https://github.com/sunsided/stft.git"
rust-version = "1.85"
version = "0.4.0"
[features]
default = ["std"]
std = ["dep:realfft", "num-traits/std", "num-complex/std"]
mel = []
ndarray = ["dep:ndarray", "std"]
rayon = ["dep:rayon", "std"]
serde = ["dep:serde"]
wasm_simd = ["std", "realfft/wasm_simd"]
[dependencies]
num-complex = { version = "0.4.6", default-features = false, features = ["libm"] }
num-traits = { version = "0.2.19", default-features = false, features = ["libm"] }
realfft = { version = "3.4.0", optional = true }
ndarray = { version = "0.16.1", optional = true, default-features = false, features = ["std"] }
rayon = { version = "1.10.0", optional = true }
serde = { version = "1.0", optional = true, default-features = false, features = ["derive", "alloc"] }
[dev-dependencies]
approx = "0.5.1"
criterion = "0.5.1"
proptest = "1.6.0"
[[bench]]
name = "lib"
harness = false
[[example]]
name = "mfcc"
required-features = ["mel"]
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
all = "deny"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]