# 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 = "pm-remez"
version = "0.3.3"
authors = ["Daniel Estevez <daniel@destevez.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parks-McClellan Remez FIR design algorithm"
homepage = "https://maia-sdr.org/"
readme = "README.md"
keywords = [
    "FIR",
    "remez",
    "DSP",
]
categories = [
    "algorithms",
    "mathematics",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/maia-sdr/pm-remez/"

[package.metadata.docs.rs]
features = [
    "lapack-backend",
    "nalgebra-backend",
    "num-bigfloat",
]

[features]
default = ["nalgebra-backend"]
intel-mkl-static = [
    "lapack-backend",
    "ndarray-linalg/intel-mkl-static",
]
intel-mkl-system = [
    "lapack-backend",
    "ndarray-linalg/intel-mkl-system",
]
lapack-backend = [
    "dep:ndarray-linalg",
    "dep:openblas-src",
]
nalgebra-backend = ["dep:nalgebra"]
netlib-static = [
    "lapack-backend",
    "ndarray-linalg/netlib-static",
]
netlib-system = [
    "lapack-backend",
    "ndarray-linalg/netlib-system",
]
openblas-static = [
    "lapack-backend",
    "ndarray-linalg/openblas-static",
]
openblas-system = [
    "lapack-backend",
    "ndarray-linalg/openblas-system",
]
python = [
    "pyo3",
    "num-bigfloat",
]

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

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

[dependencies.itertools]
version = "0.14"

[dependencies.nalgebra]
version = "0.34"
optional = true

[dependencies.ndarray]
version = "0.17"

[dependencies.ndarray-linalg]
version = "0.18"
optional = true
default-features = false

[dependencies.num-bigfloat]
version = "1.7.1"
optional = true

[dependencies.num-complex]
version = "0.4.3"

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

[dependencies.openblas-src]
version = "0.10.16"
features = ["rustls"]
optional = true

[dependencies.pyo3]
version = "0.28"
features = [
    "abi3-py38",
    "extension-module",
]
optional = true

[dependencies.thiserror]
version = "2"

[dev-dependencies.rustfft]
version = "6.2"
