feat(arr): add zip dep and provider config error

This commit is contained in:
Miguel Palhas
2026-08-24 22:54:13 +01:00
parent 94d9fc8b89
commit d8acf30fb7
4 changed files with 92 additions and 0 deletions
+7
View File
@@ -19,10 +19,17 @@ translate-command = []
[dependencies]
arr-core.workspace = true
arr-parse.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
tracing.workspace = true
zip.workspace = true
[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
wiremock.workspace = true
[lints]
workspace = true
+11
View File
@@ -74,6 +74,17 @@ pub enum Error {
#[source]
source: std::io::Error,
},
/// The provider could not be constructed: a bad base URL, or its HTTP
/// client failed to build. Always a caller bug — a hardcoded URL or a
/// test override — never a fact about the live service.
#[error("{provider} could not be configured: {detail}")]
Config {
/// The provider being constructed.
provider: ProviderId,
/// What went wrong, short enough to log.
detail: String,
},
}
impl Error {