apr-cli 0.29.3

CLI tool for APR model inspection, debugging, and operations
Documentation
# 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 = "apr-cli"
version = "0.29.3"
authors = ["Noah Gift <noah@paiml.com>"]
build = "build.rs"
exclude = [
    "playbooks/snapshots/",
    "models/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI tool for APR model inspection, debugging, and operations"
documentation = "https://docs.rs/apr-cli"
readme = "README.md"
keywords = [
    "machine-learning",
    "model-inspection",
    "cli",
    "debugging",
]
categories = [
    "command-line-utilities",
    "science",
]
license = "MIT"
repository = "https://github.com/paiml/aprender"

[features]
code = ["dep:batuta"]
cuda = ["inference"]
cuda-batch = ["cuda"]
default = [
    "hf-hub",
    "safetensors-compare",
    "inference",
    "training",
    "visualization",
    "zram",
]
dev = []
dhat-heap = ["dep:dhat"]
full = [
    "inference",
    "cuda",
    "cuda-batch",
    "visualization",
    "zram",
    "training",
    "training-gpu",
    "code",
]
hf-hub = ["aprender/hf-hub-integration"]
inference = [
    "realizar",
    "trueno",
    "tokio",
    "axum",
    "futures-util",
]
safetensors-compare = ["aprender/safetensors-compare"]
training = [
    "dep:entrenar",
    "dep:entrenar-lora",
]
training-gpu = ["training"]
visualization = [
    "renacer",
    "trueno-viz",
]
wgpu = ["inference"]
whisper = ["whisper-apr"]
zram = ["trueno-zram-core"]

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

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

[[example]]
name = "federation_tui_demo"
path = "examples/federation_tui_demo.rs"
required-features = ["inference"]

[[example]]
name = "gpu_chat_inference"
path = "examples/gpu_chat_inference.rs"
required-features = [
    "inference",
    "cuda",
]

[[example]]
name = "probar_tui_testing"
path = "examples/probar_tui_testing.rs"
required-features = ["inference"]

[[example]]
name = "ptx_parity_validation"
path = "examples/ptx_parity_validation.rs"
required-features = ["inference"]

[[example]]
name = "serve_with_tracing"
path = "examples/serve_with_tracing.rs"
required-features = ["inference"]

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

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

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

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

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

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

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

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

[dependencies.alimentar]
version = "0.2.8"
features = ["shuffle"]
default-features = false

[dependencies.aprender]
version = "0.29.0"
features = ["format-compression"]
default-features = true
package = "aprender-core"

[dependencies.async-stream]
version = "0.3"

[dependencies.axum]
version = "0.7"
optional = true

[dependencies.batuta]
version = "0.7"
features = [
    "agents",
    "agents-inference",
    "rag",
]
optional = true
default-features = false

[dependencies.batuta-common]
version = "0.1"

[dependencies.blake3]
version = "1"

[dependencies.chrono]
version = "0.4"
features = [
    "std",
    "clock",
]
default-features = false

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

[dependencies.colored]
version = "2.1"

[dependencies.crossterm]
version = "0.28"

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

[dependencies.dirs]
version = "5.0"

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

[dependencies.entrenar-lora]
version = "0.3.0"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.gag]
version = "1.0"

[dependencies.glob]
version = "0.3"

[dependencies.half]
version = "2.4.1"

[dependencies.humansize]
version = "2.1"

[dependencies.pacha]
version = "0.2.4"
features = ["remote"]
default-features = false

[dependencies.provable-contracts-macros]
version = "0.3"

[dependencies.ratatui]
version = "0.29"
default-features = true

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

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

[dependencies.rmp-serde]
version = "1.3"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.10"
package = "serde_yaml_ng"

[dependencies.tabled]
version = "0.16"

[dependencies.tempfile]
version = "3.14"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "signal",
    "sync",
]
optional = true

[dependencies.trueno]
version = "0.19.1"
optional = true

[dependencies.trueno-explain]
version = "0.2.2"
optional = true

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

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

[dependencies.ureq]
version = "2.10"

[dependencies.which]
version = "7"

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

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

[dev-dependencies.axum-test]
version = "16"

[dev-dependencies.jugar-probar]
version = "0.4"
features = ["tui"]

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

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

[dev-dependencies.regex]
version = "1.10"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "time",
]

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

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
enum_glob_use = "allow"
fn_params_excessive_bools = "allow"
format_in_format_args = "allow"
items_after_statements = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
used_underscore_binding = "allow"
wildcard_imports = "allow"

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

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

[lints.rust]
unsafe_code = "deny"