# 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 = "feagi-npu-burst-engine"
version = "0.0.1-beta.2"
authors = ["Neuraville Inc. <feagi@neuraville.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance burst engine for FEAGI neural processing"
homepage = "https://feagi.org"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/feagi/feagi-core"

[features]
all-gpu = [
    "gpu",
    "cuda",
]
async-tokio = ["feagi-structures/async-tokio"]
connectome-io = []
cuda = [
    "cudarc",
    "half",
]
default = [
    "connectome-io",
    "async-tokio",
    "std",
]
gpu = [
    "wgpu",
    "pollster",
    "bytemuck",
]
npu-lock-tracing = []
std = ["feagi-npu-runtime/std"]
wasm = ["feagi-structures/async-wasm"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "grouping_microbench"
path = "benches/grouping_microbench.rs"

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

[[bench]]
name = "grouping_test"
path = "benches/grouping_test.rs"

[[bench]]
name = "largescale_perf_test"
path = "benches/largescale_perf_test.rs"

[dependencies.ahash]
version = "0.8"
features = [
    "std",
    "serde",
    "compile-time-rng",
]
default-features = false

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

[dependencies.chrono]
version = "0.4"

[dependencies.cudarc]
version = "0.11"
features = [
    "cuda-11080",
    "f16",
]
optional = true

[dependencies.feagi-npu-neural]
version = "0.0.1-beta.2"

[dependencies.feagi-npu-runtime]
version = "0.0.1-beta.2"
optional = true

[dependencies.feagi-observability]
version = "=0.0.1-beta.2"

[dependencies.feagi-serialization]
version = "=0.0.1-beta.2"

[dependencies.feagi-state-manager]
version = "0.0.1-beta.1"

[dependencies.feagi-structures]
version = "=0.0.1-beta.2"
features = ["async"]

[dependencies.half]
version = "2.4"
optional = true

[dependencies.memmap2]
version = "0.9"

[dependencies.ndarray]
version = "0.17.1"
features = ["rayon"]

[dependencies.parking_lot]
version = "0.12"

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

[dependencies.rayon]
version = "1.11"

[dependencies.roaring]
version = "0.10"

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0.50"

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.base64]
version = "0.22"

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