# 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 = "cellular_raza-core"
version = "0.4.0-rc1"
authors = ["Jonas Pleyer <jonas.dev@pleyer.org>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cellular simulation tool"
homepage = "https://cellular-raza.com/"
documentation = "https://docs.rs/cellular_raza-core"
readme = "README.md"
keywords = [
    "cell",
    "cellular",
    "simulation",
]
categories = [
    "science",
    "mathematics",
    "simulation",
]
license = "GPL-2.0"
repository = "https://github.com/jonaspleyer/cellular_raza"
resolver = "2"

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

[features]
cara = [
    "dep:cc",
    "dep:cudarc",
]
chili = []
cpu_os_threads = ["plotters"]
default = [
    "timestamp",
    "chili",
]
elli = ["dep:opencl3"]
gradients = ["cellular_raza-concepts/gradients"]
plotters = [
    "dep:plotters",
    "cellular_raza-concepts/plotters",
]
pyo3 = [
    "dep:pyo3",
    "cellular_raza-concepts/pyo3",
]
timestamp = ["dep:chrono"]
tracing = [
    "dep:tracing",
    "dep:tracing-subscriber",
]

[lib]
name = "cellular_raza_core"
path = "src/lib.rs"

[dependencies.bincode]
version = "2.0"
features = ["serde"]

[dependencies.cellular_raza-concepts]
version = "0.4.0-rc1"

[dependencies.cellular_raza-core-proc-macro]
version = "0.4.0-rc1"

[dependencies.chrono]
version = "0.4.31"
optional = true

[dependencies.circ_buffer]
version = "0.1.8"
features = ["serde"]

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.cudarc]
version = "0.17"
features = ["cuda-12080"]
optional = true

[dependencies.hurdles]
version = "1.0"

[dependencies.itertools]
version = "0.14"

[dependencies.kdam]
version = "0.6"
features = [
    "template",
    "rayon",
]

[dependencies.num]
version = "0.4"

[dependencies.opencl3]
version = "0.12.0"
optional = true

[dependencies.plotters]
version = "0.3"
features = [
    "bitmap_backend",
    "bitmap_encoder",
    "bitmap_gif",
    "svg_backend",
    "chrono",
    "image",
    "deprecated_items",
    "all_series",
    "all_elements",
    "full_palette",
    "colormaps",
]
optional = true
default-features = false

[dependencies.pyo3]
version = ">=0.24"
features = [
    "serde",
    "py-clone",
    "serde",
    "py-clone",
]
optional = true

[dependencies.quick-xml]
version = "0.38"
features = ["serialize"]

[dependencies.rand]
version = "0.9"
features = ["small_rng"]

[dependencies.rand_chacha]
version = "0.9"
features = ["serde"]

[dependencies.rayon]
version = "1.6"

[dependencies.ron]
version = "0.11"

[dependencies.serde]
version = "1.0"

[dependencies.serde_json]
version = "1.0"

[dependencies.sled]
version = "0.34"

[dependencies.tracing]
version = "0.1.40"
optional = true

[dependencies.tracing-subscriber]
version = "0.3.18"
optional = true

[dependencies.uniquevec]
version = "0.1.0"
features = ["serde"]

[dev-dependencies.tempfile]
version = "3"

[build-dependencies.cc]
version = "1.2.7"
features = ["parallel"]
optional = true
