# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.93.0"
name = "audiofp"
version = "0.3.7"
authors = ["bravo1goingdark <kumarashutosh34169@gmail.com>"]
build = false
exclude = [
    "prep.md",
    "dsp.md",
    ".github/",
    ".agents/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust audio fingerprinting and identification: Wang, Panako, Haitsma–Kalker, ONNX neural embedder, AudioSeal watermark, and streaming variants. no_std + alloc capable, bytemuck-friendly hash types."
readme = "README.md"
keywords = [
    "audio",
    "fingerprint",
    "no-std",
    "shazam",
    "acoustid",
]
categories = [
    "multimedia::audio",
    "algorithms",
]
license = "MIT"
repository = "https://github.com/themankindproject/audiofp"

[features]
default = ["std"]
mimalloc = [
    "std",
    "dep:mimalloc",
]
neural = [
    "std",
    "dep:tract-onnx",
]
rayon = [
    "std",
    "dep:rayon",
]
std = ["dep:symphonia"]
watermark = [
    "std",
    "dep:tract-onnx",
]

[lib]
name = "audiofp"
path = "src/lib.rs"

[[example]]
name = "compare_algorithms"
path = "examples/compare_algorithms.rs"
required-features = ["std"]

[[example]]
name = "enroll_file"
path = "examples/enroll_file.rs"
required-features = ["std"]

[[example]]
name = "match_two_files"
path = "examples/match_two_files.rs"
required-features = ["std"]

[[example]]
name = "stream_buffer"
path = "examples/stream_buffer.rs"

[[test]]
name = "neural"
path = "tests/neural.rs"

[[test]]
name = "property"
path = "tests/property.rs"

[[test]]
name = "regression"
path = "tests/regression.rs"

[[test]]
name = "robustness"
path = "tests/robustness.rs"

[[test]]
name = "watermark"
path = "tests/watermark.rs"

[[bench]]
name = "extract"
path = "benches/extract.rs"
harness = false

[[bench]]
name = "neural_frontend"
path = "benches/neural_frontend.rs"
harness = false
required-features = ["neural"]

[[bench]]
name = "streaming"
path = "benches/streaming.rs"
harness = false

[dependencies.bytemuck]
version = "1.25.0"
features = ["derive"]

[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"
features = [
    "mp3",
    "aac",
    "flac",
    "ogg",
    "vorbis",
    "wav",
    "isomp4",
    "pcm",
]
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

[dev-dependencies.approx]
version = "0.5.1"

[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.hound]
version = "3.5.1"

[dev-dependencies.proptest]
version = "1.5"
features = ["std"]
default-features = false

[profile.bench]
lto = "fat"
codegen-units = 1

[profile.release]
lto = "fat"
codegen-units = 1
strip = "symbols"
