[package]
build = "build.rs"
description = "tthis crate provides various random distribution and initialization routines for the concision framework"
name = "concision-init"
authors.workspace = true
categories.workspace = true
edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
readme.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true
[package.metadata.docs.rs]
all-features = false
features = ["full"]
rustc-args = ["--cfg", "docsrs"]
[package.metadata.release]
no-dev-version = true
tag-name = "v{{version}}"
[lib]
bench = false
crate-type = ["cdylib", "rlib"]
doc = true
doctest = true
test = true
[dependencies]
serde = { features = ["derive"], optional = true, workspace = true }
serde_derive = { optional = true, workspace = true }
serde_json = { optional = true, workspace = true }
thiserror = { workspace = true }
tracing = { optional = true, workspace = true }
paste = { workspace = true }
smart-default = { workspace = true }
strum = { workspace = true }
approx = { optional = true, workspace = true }
ndarray = { workspace = true }
num = { workspace = true }
num-complex = { optional = true, workspace = true }
num-traits = { workspace = true }
getrandom = { default-features = false, optional = true, workspace = true }
rand = { optional = true, workspace = true }
rand_distr = { optional = true, workspace = true }
[dev-dependencies]
lazy_static = { workspace = true }
[features]
default = ["rand", "std"]
full = ["approx", "complex", "default", "serde", "tracing"]
nightly = []
std = [
"alloc",
"ndarray/std",
"num-complex?/std",
"num-traits/std",
"num/std",
"rand/std",
"rand/std_rng",
"serde/std",
"strum/std",
"thiserror/std",
"tracing?/std",
]
wasi = []
wasm = ["getrandom?/wasm_js"]
alloc = ["num/alloc", "serde?/alloc"]
approx = ["dep:approx", "ndarray/approx"]
blas = ["ndarray/blas"]
complex = ["dep:num-complex"]
rand = ["dep:rand", "dep:rand_distr", "num-complex?/rand", "num/rand", "rng"]
rng = ["dep:getrandom", "rand?/small_rng", "rand?/thread_rng"]
serde = [
"dep:serde",
"dep:serde_derive",
"ndarray/serde",
"num-complex?/serde",
"num/serde",
"rand?/serde",
"rand_distr?/serde",
]
tracing = ["dep:tracing"]
[[test]]
name = "default"
[[test]]
name = "init"
required-features = ["rand", "std"]