# 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 = "2021"
name = "sc_neurocore_engine"
version = "3.15.5"
authors = ["Miroslav Sotek <protoscience@anulum.li>"]
build = false
exclude = [
    "tests/",
    ".github/",
    "*.pyc",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance SIMD backend for SC-NeuroCore stochastic neuromorphic computing"
homepage = "https://anulum.github.io/sc-neurocore/"
documentation = "https://anulum.github.io/sc-neurocore/rust-api/sc_neurocore_engine/"
readme = "README.md"
keywords = [
    "neuromorphic",
    "stochastic-computing",
    "simd",
    "spiking-network",
    "fpga",
]
categories = [
    "science",
    "simulation",
    "mathematics",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/anulum/sc-neurocore"

[package.metadata.maturin]
python-source = "../bridge"
module-name = "sc_neurocore_engine.sc_neurocore_engine"

[features]
default = []
gpu = [
    "dep:wgpu",
    "dep:pollster",
    "dep:bytemuck",
]

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

[[bench]]
name = "analysis_bench"
path = "benches/analysis_bench.rs"
harness = false

[[bench]]
name = "bitstream_bench"
path = "benches/bitstream_bench.rs"
harness = false

[[bench]]
name = "full_bench"
path = "benches/full_bench.rs"
harness = false

[[bench]]
name = "gpu_bench"
path = "benches/gpu_bench.rs"
harness = false
required-features = ["gpu"]

[[bench]]
name = "scaling_bench"
path = "benches/scaling_bench.rs"
harness = false

[dependencies.bytemuck]
version = "1.21"
features = ["derive"]
optional = true

[dependencies.ndarray]
version = "0.16"

[dependencies.numpy]
version = "0.28"

[dependencies.pollster]
version = "0.4"
optional = true

[dependencies.pyo3]
version = "0.28"
features = ["extension-module"]

[dependencies.rand]
version = "0.10"

[dependencies.rand_chacha]
version = "0.10"

[dependencies.rand_distr]
version = "0.6"

[dependencies.rand_xoshiro]
version = "0.8"

[dependencies.rayon]
version = "1.10"

[dependencies.rustfft]
version = "6.2"

[dependencies.wgpu]
version = "29"
optional = true

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "1.4"

[build-dependencies.pyo3-build-config]
version = "0.28"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
