[[bin]]
name = "tl"
path = "src/main.rs"
[dependencies.anyhow]
version = "1"
[dependencies.async-stream]
version = "0.3"
[dependencies.bytes]
version = "1"
[dependencies.clap]
features = ["derive"]
version = "4"
[dependencies.dirs]
version = "6"
[dependencies.futures-util]
version = "0.3"
[dependencies.hex]
version = "0.4"
[dependencies.indicatif]
version = "0.18"
[dependencies.inquire]
features = ["editor"]
version = "0.9"
[dependencies.owo-colors]
version = "4"
[dependencies.reqwest]
features = ["stream", "json"]
version = "0.13"
[dependencies.rusqlite]
features = ["bundled"]
version = "0.38"
[dependencies.serde]
features = ["derive"]
version = "1"
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.tokio]
features = ["full"]
version = "1"
[dependencies.toml]
version = "0.9"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tempfile]
version = "3"
[lib]
name = "tl_cli"
path = "src/lib.rs"
[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
expect_used = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
unwrap_used = "warn"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["command-line-utilities"]
description = "A streaming, cached translation CLI using OpenAI-compatible endpoints"
edition = "2024"
homepage = "https://github.com/d2verb/tl"
keywords = ["cli", "translation", "ai"]
license = "MIT"
name = "tl-cli"
readme = "README.md"
repository = "https://github.com/d2verb/tl"
version = "0.2.1"
[profile.dist]
inherits = "release"
lto = "thin"
[[test]]
name = "cli_smoke"
path = "tests/cli_smoke.rs"
[[test]]
name = "config_priority"
path = "tests/config_priority.rs"