# 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.89"
name = "batuta"
version = "0.6.3"
authors = ["Pragmatic AI Labs"]
build = false
exclude = [
    "book/",
    "docs/specifications/",
    ".github/",
    "*.md.bak",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Orchestration framework for converting ANY project (Python, C/C++, Shell) to modern Rust"
readme = "README.md"
keywords = [
    "transpiler",
    "rust",
    "python",
    "c",
    "ml",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/paiml/Batuta"

[features]
apple-hardware = ["manzana"]
block-device = [
    "trueno-ublk",
    "compression",
]
compression = [
    "trueno-zram-core",
    "native",
]
daemon = [
    "duende",
    "native",
]
default = ["native"]
distributed = [
    "repartir",
    "native",
]
gaming = [
    "jugar",
    "native",
]
highlighting = [
    "syntect",
    "once_cell",
    "native",
]
inference = [
    "realizar",
    "native",
]
kernel = [
    "pepita",
    "native",
]
mcp-sdk = [
    "rust-mcp-sdk",
    "native",
]
ml = [
    "aprender",
    "entrenar",
    "alimentar",
    "native",
]
monitoring = [
    "ttop",
    "native",
]
native = [
    "clap",
    "serde_yaml",
    "toml",
    "tokio",
    "tracing",
    "tracing-subscriber",
    "walkdir",
    "glob",
    "which",
    "indicatif",
    "dirs",
    "cargo_metadata",
    "semver",
    "reqwest",
    "dialoguer",
    "pacha",
]
oracle-mode = [
    "trueno-graph",
    "trueno-db",
    "native",
]
rag = [
    "trueno-rag",
    "oracle-mode",
]
scripting = [
    "ruchy",
    "native",
]
shell = [
    "pzsh",
    "native",
]
simulation = [
    "simular",
    "native",
]
sovereign-stack = [
    "trueno-integration",
    "oracle-mode",
    "inference",
    "distributed",
    "ml",
    "rag",
    "viz",
    "speech",
    "compression",
    "monitoring",
    "simulation",
    "gaming",
    "scripting",
    "transpilers",
    "mcp-sdk",
    "utilities",
    "testing",
    "daemon",
    "shell",
    "tui",
    "highlighting",
]
speech = [
    "whisper-apr",
    "native",
]
testing = [
    "probar",
    "certeza",
    "verificar",
    "native",
]
transpilers = [
    "decy",
    "bashrs",
    "rascal",
    "native",
]
trueno-integration = [
    "trueno",
    "native",
]
tui = [
    "presentar-terminal",
    "crossterm",
    "native",
]
utilities = [
    "copia",
    "nviwatch",
    "ruchydbg",
    "native",
]
viz = [
    "trueno-viz",
    "presentar",
    "native",
]
wasm = [
    "wasm-bindgen",
    "wasm-bindgen-futures",
    "js-sys",
    "web-sys",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.alimentar]
version = "0.2"
optional = true

[dependencies.anyhow]
version = "1.0"

[dependencies.aprender]
version = "0.25"
optional = true

[dependencies.async-trait]
version = "0.1"

[dependencies.bashrs]
version = "6.59"
optional = true

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

[dependencies.certeza]
version = "0.1"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.copia]
version = "0.1"
optional = true

[dependencies.crossterm]
version = "0.28"
optional = true

[dependencies.decy]
version = "2.0"
optional = true

[dependencies.dialoguer]
version = "0.12"
optional = true

[dependencies.dirs]
version = "5.0"
optional = true

[dependencies.duende]
version = "0.2"
optional = true

[dependencies.entrenar]
version = "0.5"
optional = true

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

[dependencies.indicatif]
version = "0.18"
optional = true

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.jugar]
version = "0.1"
optional = true

[dependencies.manzana]
version = "0.2"
optional = true

[dependencies.nviwatch]
version = "0.2"
optional = true

[dependencies.once_cell]
version = "1.21"
optional = true

[dependencies.pacha]
version = "0.2"
optional = true

[dependencies.pepita]
version = "0.1"
optional = true

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

[dependencies.presentar-terminal]
version = "0.3"
optional = true

[dependencies.probar]
version = "0.1"
optional = true

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

[dependencies.rascal]
version = "0.1"
optional = true

[dependencies.realizar]
version = "0.6"
optional = true

[dependencies.renacer]
version = "0.9.8"
optional = true

[dependencies.repartir]
version = "2.0"
features = [
    "cpu",
    "remote",
]
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
optional = true
default-features = false

[dependencies.ruchy]
version = "4.1"
optional = true

[dependencies.ruchydbg]
version = "0.1"
optional = true

[dependencies.rust-mcp-sdk]
version = "0.8"
optional = true

[dependencies.semver]
version = "1.0"
features = ["serde"]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"
optional = true

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

[dependencies.syntect]
version = "5.2"
features = [
    "default-syntaxes",
    "default-themes",
    "regex-fancy",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.48"
features = ["full"]
optional = true

[dependencies.toml]
version = "0.9"
optional = true

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

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
optional = true

[dependencies.trueno]
version = "0.14"
features = ["gpu"]
optional = true

[dependencies.trueno-db]
version = "0.3.13"
optional = true

[dependencies.trueno-graph]
version = "0.1.13"
optional = true

[dependencies.trueno-rag]
version = "0.2"
features = ["sqlite"]
optional = true

[dependencies.trueno-ublk]
version = "0.3"
optional = true

[dependencies.trueno-viz]
version = "0.1.20"
optional = true

[dependencies.trueno-zram-core]
version = "0.3"
optional = true

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

[dependencies.verificar]
version = "0.5"
optional = true

[dependencies.walkdir]
version = "2.5"
optional = true

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true

[dependencies.web-sys]
version = "0.3"
features = ["console"]
optional = true

[dependencies.which]
version = "6.0"
optional = true

[dependencies.whisper-apr]
version = "0.2"
optional = true

[dev-dependencies.assert_cmd]
version = "2.0"

[dev-dependencies.blake3]
version = "1.8"

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

[dev-dependencies.predicates]
version = "3.1"

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

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

[dev-dependencies.trueno-cuda-edge]
version = "0.1"

[lints.clippy]
clone_on_ref_ptr = "allow"
cognitive_complexity = "warn"
needless_pass_by_value = "allow"
too_many_arguments = "warn"
unwrap_used = "allow"

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.clippy.perf]
level = "warn"
priority = -1

[lints.clippy.style]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "allow"
unreachable_pub = "allow"
unsafe_op_in_unsafe_fn = "warn"

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

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