[package]
edition = "2024"
rust-version = "1.93.0"
name = "audiofp"
version = "0.4.0"
authors = ["bravo1goingdark <kumarashutosh34169@gmail.com>"]
build = false
exclude = [
".github/",
".claude/",
".agents/",
"tests/assets/",
"tests/goldens/",
"tests/",
"fuzz/",
"benches/",
"clippy.toml",
"deny.toml",
"rustfmt.toml",
"rust-toolchain.toml",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"SECURITY.md",
"CHANGELOG.md",
"context.md",
"prep.md",
"dsp.md",
"USAGE.md",
"ROBUSTNESS.md",
"scripts/",
"examples/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust audio fingerprinting: Wang, Panako, Haitsma–Kalker with streaming, in-memory matching, ONNX neural/watermark, no_std + alloc, Pod hash types."
homepage = "https://github.com/themankindproject/audiofp"
documentation = "https://docs.rs/audiofp"
readme = "README.md"
keywords = [
"audio",
"fingerprint",
"no-std",
"shazam",
"acoustid",
]
categories = [
"multimedia::audio",
"algorithms",
]
license = "MIT"
repository = "https://github.com/themankindproject/audiofp"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
all-codecs = [
"std-mp3",
"std-aac",
"std-flac",
"std-ogg",
"std-wav",
"std-mp4",
"std-aiff",
"std-mkv",
"std-adpcm",
"std-alac",
]
default = []
mimalloc = [
"std",
"dep:mimalloc",
]
neural = [
"std",
"dep:tract-onnx",
]
rayon = [
"std",
"dep:rayon",
]
std = [
"dep:symphonia",
"dep:ahash",
]
std-aac = [
"std",
"symphonia/aac",
]
std-adpcm = [
"std",
"symphonia/adpcm",
]
std-aiff = [
"std",
"symphonia/aiff",
"symphonia/pcm",
]
std-alac = [
"std",
"symphonia/alac",
"symphonia/isomp4",
]
std-flac = [
"std",
"symphonia/flac",
]
std-mkv = [
"std",
"symphonia/mkv",
]
std-mp3 = [
"std",
"symphonia/mp3",
]
std-mp4 = [
"std",
"symphonia/isomp4",
"symphonia/aac",
]
std-ogg = [
"std",
"symphonia/ogg",
"symphonia/vorbis",
]
std-wav = [
"std",
"symphonia/wav",
"symphonia/pcm",
]
watermark = [
"std",
"dep:tract-onnx",
]
[lib]
name = "audiofp"
path = "src/lib.rs"
[dependencies.ahash]
version = "0.8.11"
features = ["compile-time-rng"]
optional = true
default-features = false
[dependencies.bytemuck]
version = "1.25.0"
features = [
"derive",
"extern_crate_alloc",
]
[dependencies.libm]
version = "0.2.16"
[dependencies.mimalloc]
version = "0.1.50"
optional = true
default-features = false
[dependencies.num-complex]
version = "0.4.6"
default-features = false
[dependencies.num-traits]
version = "0.2.19"
default-features = false
[dependencies.rayon]
version = "1.10"
optional = true
[dependencies.realfft]
version = "3.5.0"
default-features = false
[dependencies.symphonia]
version = "0.6"
optional = true
default-features = false
[dependencies.thiserror]
version = "2.0.18"
default-features = false
[dependencies.tract-onnx]
version = "0.23"
optional = true
default-features = false
[dependencies.wide]
version = "1.6.0"
default-features = false
[dev-dependencies.approx]
version = "0.5.1"
[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.hound]
version = "3.5.1"
[dev-dependencies.proptest]
version = "1.11"
features = ["std"]
default-features = false
[profile.bench]
lto = "fat"
codegen-units = 1
[profile.release]
lto = "fat"
codegen-units = 1
strip = "symbols"