[package]
edition = "2024"
rust-version = "1.88"
name = "vtcode-auth"
version = "0.105.6"
authors = ["Vinh Nguyen <vinhnguyen2308@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authentication and OAuth flows shared across VT Code"
homepage = "https://github.com/vinhnx/vtcode"
documentation = "https://docs.rs/vtcode-auth"
readme = "README.md"
keywords = [
"auth",
"oauth",
"vtcode",
"keyring",
]
categories = [
"authentication",
"development-tools",
]
license = "MIT"
repository = "https://github.com/vinhnx/vtcode"
resolver = "2"
[features]
default = []
schema = ["dep:schemars"]
[lib]
name = "vtcode_auth"
path = "src/lib.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.axum]
version = "0.8"
[dependencies.base64]
version = "0.22.1"
[dependencies.dirs]
version = "6.0"
[dependencies.fs2]
version = "0.4"
[dependencies.hostname]
version = "0.4"
[dependencies.keyring-core]
version = "1"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
"stream",
]
default-features = false
[dependencies.ring]
version = "0.17"
[dependencies.schemars]
version = "1.2"
features = ["indexmap2"]
optional = true
[dependencies.serde]
version = "1.0"
features = [
"derive",
"derive",
]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.11"
[dependencies.tempfile]
version = "3.27"
[dependencies.tokio]
version = "1.52"
features = ["full"]
[dependencies.tracing]
version = "0.1"
[dependencies.urlencoding]
version = "2.1"
[dev-dependencies.assert_fs]
version = "1.1"
[dev-dependencies.serial_test]
version = "3.4"
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.dbus-secret-service-keyring-store]
version = "1.0.0"
features = [
"crypto-rust",
"vendored",
]
[target.'cfg(target_os = "macos")'.dependencies.apple-native-keyring-store]
version = "1.0.0"
features = ["keychain"]
[target.'cfg(target_os = "windows")'.dependencies.windows-native-keyring-store]
version = "1.0.0"
[target."cfg(unix)".dependencies.nix]
version = "0.31"
features = ["user"]
[lints.clippy]
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
dbg_macro = "warn"
expl_impl_clone_on_copy = "warn"
infallible_try_from = "warn"
invalid_upcast_comparisons = "warn"
iter_not_returning_iterator = "warn"
let_underscore_future = "warn"
lossy_float_literal = "warn"
mem_forget = "warn"
multiple_unsafe_ops_per_block = "warn"
rc_mutex = "warn"
todo = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
[lints.rust]
trivial_numeric_casts = "warn"
unsafe_code = "warn"
unstable_features = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_qualifications = "warn"
unused_results = "allow"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(tarpaulin)"]