# 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.85.0"
name = "concision-params"
version = "0.2.9"
authors = [
    "FL03 <jo3mccain@icloud.com> (https://github.com/FL03)",
    "Scattered-Systems <support@scsys.io> (https://github.com/scattered-systems)",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "this crate implements the core modules for the concision framework"
homepage = "https://github.com/FL03/concision/wiki"
readme = "README.md"
keywords = [
    "data-science",
    "machine-learning",
    "scsys",
    "toolkit",
]
categories = [
    "algorithms",
    "mathematics",
    "science",
]
license = "Apache-2.0"
repository = "https://github.com/FL03/concision.git"

[package.metadata.docs.rs]
all-features = false
features = ["full"]
rustc-args = [
    "--cfg",
    "docsrs",
]
version = "v{{version}}"

[package.metadata.release]
no-dev-version = true
tag-name = "{{version}}"

[features]
alloc = [
    "concision-init/alloc",
    "concision-traits/alloc",
    "serde?/alloc",
    "serde_json?/alloc",
    "variants/alloc",
]
approx = [
    "dep:approx",
    "concision-init/approx",
    "ndarray/approx",
]
blas = [
    "concision-init/blas",
    "ndarray/blas",
]
complex = [
    "dep:num-complex",
    "concision-init/complex",
]
default = ["std"]
full = [
    "default",
    "approx",
    "complex",
    "json",
    "rand",
    "serde",
]
json = [
    "alloc",
    "serde",
    "serde_json",
]
nightly = [
    "concision-init/nightly",
    "concision-traits/nightly",
]
rand = [
    "dep:rand",
    "dep:rand_distr",
    "concision-init/rand",
    "concision-traits/rand",
    "num-complex?/rand",
    "rng",
]
rayon = [
    "dep:rayon",
    "ndarray/rayon",
]
rng = [
    "dep:getrandom",
    "concision-init/rng",
    "concision-traits/rng",
    "rand?/small_rng",
    "rand?/thread_rng",
]
serde = [
    "concision-init/serde",
    "dep:serde",
    "dep:serde_derive",
    "ndarray/serde",
    "num-complex?/serde",
    "rand?/serde",
    "rand_distr?/serde",
]
serde_json = ["dep:serde_json"]
std = [
    "alloc",
    "concision-init/std",
    "concision-traits/std",
    "ndarray/std",
    "num-complex?/std",
    "num-traits/std",
    "rand?/std",
    "rand?/std_rng",
    "serde/std",
    "thiserror/std",
    "variants/std",
]
wasi = [
    "concision-init/wasi",
    "concision-traits/wasi",
]
wasm = [
    "getrandom?/wasm_js",
    "concision-init/wasm",
    "concision-traits/wasm",
]

[lib]
name = "concision_params"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"
test = true
doctest = true
bench = false
doc = true

[[test]]
name = "create"
path = "tests/create.rs"
required-features = ["std"]

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

[dependencies.approx]
version = "0.5"
optional = true

[dependencies.concision-init]
version = "0.2.9"
default-features = false

[dependencies.concision-traits]
version = "0.2.9"
default-features = false

[dependencies.getrandom]
version = "0.3"
optional = true
default-features = false

[dependencies.ndarray]
version = "0.17"
default-features = false

[dependencies.num-complex]
version = "0.4"
optional = true
default-features = false

[dependencies.num-traits]
version = "0.2"
default-features = false

[dependencies.rand]
version = "0.9"
optional = true
default-features = false

[dependencies.rand_distr]
version = "0.5"
optional = true
default-features = false

[dependencies.rayon]
version = "1"
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = [
    "derive",
    "derive",
]
optional = true
default-features = false

[dependencies.serde_derive]
version = "1"
optional = true
default-features = false

[dependencies.serde_json]
version = "1"
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.variants]
version = "0.0.1"
features = ["derive"]
default-features = false

[dev-dependencies.lazy_static]
version = "1"
