# 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"
name = "spectrograms"
version = "2.1.3"
authors = ["Jack Geraghty (jmg049) <jgeraghty049@gmail.com>"]
build = "build.rs"
exclude = [
    "/python/",
    "pyproject.toml",
    "uv.lock",
    "/docs/",
    "/manual/",
    "/imgs/",
    "PYTHON_BENCHMARK.md",
    "build_docs.py",
    "deploy_docs.sh",
    "/examples/",
    "/tests/",
    "/benches/",
    "*.png",
    "*.jpg",
    "*.jpeg",
    "*.gif",
    "*.pdf",
    "*.zip",
    ".github/",
    "*.code-workspace",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance FFT-based computations for audio and image processing"
readme = "README.md"
keywords = [
    "fft",
    "spectrogram",
    "audio",
    "image",
    "signal-processing",
]
categories = [
    "multimedia::audio",
    "multimedia::images",
    "science",
]
license = "MIT"
repository = "https://github.com/jmg049/Spectrograms"

[package.metadata.docs.rs]
all-features = false
features = [
    "realfft",
    "serde",
    "python",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["realfft"]
fftw = ["dep:fftw-sys"]
python = [
    "dep:pyo3",
    "dep:numpy",
]
rayon = [
    "dep:rayon",
    "ndarray/rayon",
]
realfft = [
    "dep:realfft",
    "dep:rustfft",
]
serde = ["dep:serde"]

[lib]
name = "spectrograms"
crate-type = [
    "lib",
    "cdylib",
]
path = "src/lib.rs"

[dependencies.bincode2]
version = "2.0.1"
optional = true

[dependencies.fftw-sys]
version = "0.8.0"
optional = true

[dependencies.ndarray]
version = ">=0.17"
features = ["serde"]

[dependencies.non-empty-slice]
version = "0.6.0"
features = ["serde"]

[dependencies.num-complex]
version = "0.4.6"
features = ["serde"]

[dependencies.num-traits]
version = "0.2.19"

[dependencies.numpy]
version = "0.29.0"
optional = true

[dependencies.once_cell]
version = "1.21.4"

[dependencies.pyo3]
version = "0.29.0"
features = [
    "experimental-inspect",
    "py-clone",
]
optional = true

[dependencies.rayon]
version = "1.12.0"
optional = true

[dependencies.realfft]
version = "3.5.0"
optional = true

[dependencies.regex]
version = "1.12.4"

[dependencies.rustfft]
version = "6.4.1"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.bincode2]
version = "2.0.1"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.num-format]
version = "0.4.4"

[dev-dependencies.rmp-serde]
version = "1.1"

[dev-dependencies.serde_json]
version = "1.0.150"

[build-dependencies.pkg-config]
version = "0.3.33"

[profile.bench]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
strip = "symbols"
