# 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"
rust-version = "1.86"
name = "oxibonsai-cli"
version = "0.2.2"
authors = ["COOLJAPAN OU (Team KitaSan)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust 1-bit LLM inference engine for PrismML Bonsai models — CLI"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/cool-japan/oxibonsai"

[features]
cuda = ["oxibonsai-kernels/cuda"]
default = ["server"]
eval = ["dep:oxibonsai-eval"]
gpu = ["oxibonsai-kernels/gpu"]
metal = [
    "gpu",
    "oxibonsai-kernels/metal",
    "oxibonsai-model/metal",
    "oxibonsai-runtime/metal",
    "oxibonsai-image/metal",
]
native-cuda = [
    "gpu",
    "oxibonsai-kernels/native-cuda",
    "oxibonsai-model/native-cuda",
    "oxibonsai-runtime/native-cuda",
    "oxibonsai-image/native-cuda",
]
native-tokenizer = ["dep:oxibonsai-tokenizer"]
rag = ["oxibonsai-rag"]
server = ["oxibonsai-runtime/server"]
simd-avx2 = ["oxibonsai-kernels/simd-avx2"]
simd-avx512 = ["oxibonsai-kernels/simd-avx512"]
simd-neon = ["oxibonsai-kernels/simd-neon"]
wasm = [
    "oxibonsai-core/wasm",
    "oxibonsai-kernels/wasm",
    "oxibonsai-model/wasm",
    "oxibonsai-runtime/wasm",
]

[[bin]]
name = "oxibonsai"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.oxibonsai-core]
version = "0.2.2"

[dependencies.oxibonsai-eval]
version = "0.2.2"
optional = true

[dependencies.oxibonsai-image]
version = "0.2.2"

[dependencies.oxibonsai-kernels]
version = "0.2.2"

[dependencies.oxibonsai-model]
version = "0.2.2"

[dependencies.oxibonsai-rag]
version = "0.2.2"
optional = true

[dependencies.oxibonsai-runtime]
version = "0.2.2"
default-features = false

[dependencies.oxibonsai-tokenizer]
version = "0.2.2"
optional = true

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.toml]
version = "1.1.2"

[dependencies.tracing]
version = "0.1.44"

[dev-dependencies.axum]
version = "0.8.9"

[dev-dependencies.bytes]
version = "1.11.1"

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

[dev-dependencies.half]
version = "2.7.1"
features = ["serde"]

[dev-dependencies.http-body-util]
version = "0.1.3"

[dev-dependencies.oxibonsai-core]
version = "0.2.2"

[dev-dependencies.oxibonsai-kernels]
version = "0.2.2"

[dev-dependencies.oxibonsai-model]
version = "0.2.2"

[dev-dependencies.oxibonsai-runtime]
version = "0.2.2"
default-features = false

[dev-dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "blocking",
]

[dev-dependencies.serde_json]
version = "1.0.150"

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

[dev-dependencies.tokio]
version = "1.52.3"
features = ["full"]

[dev-dependencies.tower]
version = "0.5.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.axum]
version = "0.8.9"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.clap]
version = "4.6.1"
features = ["derive"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ctrlc]
version = "3.5.2"
features = ["termination"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dotenvy]
version = "0.15.7"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.memmap2]
version = "0.9.10"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "blocking",
    "blocking",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.52.3"
features = ["full"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tracing-subscriber]
version = "0.3.23"
features = [
    "env-filter",
    "json",
]

[profile.dev.package."*"]
opt-level = 3

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

[profile.test]
opt-level = 2
