# 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 = "cbramod-rs"
version = "0.0.1"
authors = ["Eugene Hauptmann"]
build = false
exclude = [
    "data/",
    "figures/",
    "tests/vectors/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CBraMod EEG Foundation Model — inference in Rust with Burn ML"
homepage = "https://github.com/eugenehp/cbramod-rs"
documentation = "https://docs.rs/cbramod-rs"
readme = "README.md"
keywords = [
    "eeg",
    "foundational",
    "BCI",
    "GPU",
    "CPU",
]
categories = [
    "science",
    "mathematics",
]
license = "Apache-2.0"
repository = "https://github.com/eugenehp/cbramod-rs"

[features]
blas-accelerate = ["burn-ndarray?/blas-accelerate"]
default = ["ndarray"]
metal = [
    "wgpu",
    "burn-wgpu/metal",
]
ndarray = [
    "dep:burn-ndarray",
    "burn/ndarray",
]
openblas-system = ["burn-ndarray?/blas-openblas-system"]
vulkan = [
    "wgpu",
    "burn-wgpu/vulkan",
]
wgpu = ["burn/wgpu"]

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

[[bin]]
name = "infer"
path = "src/bin/infer.rs"

[[example]]
name = "benchmark"
path = "examples/benchmark.rs"

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

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.burn]
version = "0.20.1"
features = [
    "std",
    "simd",
]
default-features = false

[dependencies.burn-ndarray]
version = "0.20.1"
features = [
    "std",
    "simd",
    "multi-threads",
]
optional = true
default-features = false

[dependencies.burn-wgpu]
version = "0.20.1"
optional = true
default-features = true

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.half]
version = "2"
features = ["bytemuck"]

[dependencies.rustfft]
version = "6"

[dependencies.safetensors]
version = "0.7"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
