[package]
name = "cellular_raza-building-blocks"
description = "cellular_raza Building Blocks"
readme = "README.md"
documentation = "https://docs.rs/cellular_raza-building-blocks"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
keywords.workspace = true
categories.workspace = true
homepage.workspace =  true

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "doc_cfg", "--html-in-header", ".docs-header.html" ]
all-features = true

[dependencies]
plotters = { workspace = true, optional = true }
num = { workspace = true }
rand = { workspace = true, features=["small_rng"] }
rand_distr = { workspace = true, features = ["serde"]}
rand_chacha = { workspace = true, features=["serde"]}
nalgebra.workspace = true
ndarray.workspace = true
serde = { workspace = true }
itertools = { workspace = true }
rayon = { version="1.6" }
pyo3 = { workspace = true, optional = true, features=["serde", "py-clone"] }
approx = { workspace = true, optional = true }

[dev-dependencies]
serde_test = "1.0.177"

[dependencies.cellular_raza-concepts]
path = "../cellular_raza-concepts"
version = "0.3.0"

[features]
default = ["gradients"]
pyo3 = ["dep:pyo3"]
gradients = ["cellular_raza-concepts/gradients"]
approx = ["dep:approx"]
plotters = ["dep:plotters", "cellular_raza-concepts/plotters"]
