Files
arr/crates/arr-subs/Cargo.toml
T
Miguel Palhas 8efb9cbf23 feat(arr): OpenAI-compatible translation backend
Behind the existing translate-openai feature. One JSON-in/JSON-out
chat/completions request per batch; refusal, content-filter and
truncated replies fail loudly instead of validating as a short batch.
2026-08-25 00:50:06 +01:00

46 lines
1.2 KiB
TOML

[package]
name = "arr-subs"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
publish = false
[features]
default = []
# Translation backends, one feature each (DESIGN.md §15). The backends
# themselves land in #191, #192 and #193; the switches exist now so the crate
# they will hang off is already shaped for them, and so a build can be told
# which ones to compile in before any of them exists.
translate-openai = []
translate-deepl = []
translate-google = []
translate-command = []
[dependencies]
arr-core.workspace = true
arr-parse.workspace = true
chardetng.workspace = true
encoding_rs.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
tracing.workspace = true
zip.workspace = true
[dev-dependencies]
tempfile.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
wiremock.workspace = true
# Only built with the feature it exercises — cargo skips the target
# otherwise, rather than compiling an empty one that flags every crate
# dependency as unused.
[[test]]
name = "openai"
required-features = ["translate-openai"]
[lints]
workspace = true