[package]
edition = "2024"
name = "node-auth"
version = "0.4.0"
build = false
exclude = [
".github/",
"scripts/",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authenticate npm, yarn, pnpm, and Bun to Google Artifact Registry using Google Cloud ADC"
homepage = "https://github.com/the-chris-strange/node-auth"
documentation = "https://docs.rs/node-auth"
readme = "README.md"
keywords = [
"artifact-registry",
"gcp",
"npm",
"authentication",
]
categories = [
"authentication",
"command-line-utilities",
"development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/the-chris-strange/node-auth"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
cli = [
"dep:clap",
"dep:colored",
"tokio/macros",
"tokio/rt-multi-thread",
]
default = ["cli"]
[lib]
name = "node_auth"
path = "src/lib.rs"
[[bin]]
name = "artifactregistry-auth"
path = "src/bin/artifactregistry_auth.rs"
required-features = ["cli"]
[[bin]]
name = "node-auth"
path = "src/main.rs"
required-features = ["cli"]
[[bin]]
name = "node-auth-token"
path = "src/bin/node_auth_token.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "pnpm_test"
path = "tests/pnpm_test.rs"
[[test]]
name = "token_helper_test"
path = "tests/token_helper_test.rs"
[dependencies.clap]
version = "4.5"
features = [
"derive",
"env",
]
optional = true
[dependencies.colored]
version = "3.1"
optional = true
[dependencies.dirs]
version = "7.0"
[dependencies.gcp_auth]
version = "0.12"
[dependencies.log]
version = "0.4"
[dependencies.regex]
version = "1.10"
[dependencies.tempfile]
version = "3.10"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.38"
features = [
"rt",
"net",
"time",
]
[dependencies.toml_edit]
version = "0.25"
[dependencies.url]
version = "2.5"
[dependencies.yaml-edit]
version = "0.3.2"
[dev-dependencies.tokio]
version = "1.38"
features = [
"macros",
"rt-multi-thread",
]
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_Security",
"Win32_Security_Authorization",
"Win32_Storage_FileSystem",
"Win32_System_Threading",
]