# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.82.0"
name = "bwx-cli"
version = "2.1.0"
authors = [
    "Drew Carlson <its@drews.website>",
    "Jesse Luehrs <doy@tozt.net>",
]
build = false
include = [
    "src/**/*",
    "bin/**/*",
    "LICENSE",
    "README.md",
    "CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial Bitwarden CLI with first-class macOS support"
readme = "README.md"
keywords = ["bitwarden"]
categories = [
    "command-line-utilities",
    "cryptography",
]
license = "MIT"
repository = "https://github.com/drewcarlson/bwx-cli"

[package.metadata.deb]
depends = "pinentry"
license-file = ["LICENSE"]
assets = [
    [
    "target/release/bwx",
    "usr/bin/",
    "755",
],
    [
    "target/release/bwx-agent",
    "usr/bin/",
    "755",
],
    [
    "target/release/completion/bash",
    "usr/share/bash-completion/completions/bwx",
    "644",
],
    [
    "target/release/completion/zsh",
    "usr/share/zsh/vendor-completions/_bwx",
    "644",
],
    [
    "target/release/completion/fish",
    "usr/share/fish/completions/bwx.fish",
    "644",
],
    [
    "README.md",
    "usr/share/doc/bwx/README",
    "644",
],
]

[package.metadata.generate-rpm]
license = "MIT"

[package.metadata.generate-rpm.requires]
pinentry = "*"

[[package.metadata.generate-rpm.assets]]
source = "target/release/bwx"
dest = "/usr/bin/bwx"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "target/release/bwx-agent"
dest = "/usr/bin/bwx-agent"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "target/release/completion/bash"
dest = "/usr/share/bash-completion/completions/bwx"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "target/release/completion/zsh"
dest = "/usr/share/zsh/site-functions/_bwx"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "target/release/completion/fish"
dest = "/usr/share/fish/vendor_completions.d/bwx.fish"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "LICENSE"
dest = "/usr/share/licenses/bwx-cli/LICENSE"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "README.md"
dest = "/usr/share/doc/bwx-cli/README.md"
mode = "644"
doc = true

[features]
clipboard = ["arboard"]
default = [
    "clipboard",
    "sso-browser",
]
sso-browser = ["open"]

[lib]
name = "bwx"
path = "src/lib.rs"

[[bin]]
name = "bwx"
path = "src/bin/bwx/main.rs"

[[bin]]
name = "bwx-agent"
path = "src/bin/bwx-agent/main.rs"

[dependencies.aes]
version = "0.8.4"

[dependencies.arboard]
version = "3.6.1"
features = ["wayland-data-control"]
optional = true
default-features = false

[dependencies.argon2]
version = "0.5.3"

[dependencies.base64]
version = "0.22.1"

[dependencies.cbc]
version = "0.1.2"
features = [
    "alloc",
    "std",
]

[dependencies.clap]
version = "4.5.53"
features = [
    "wrap_help",
    "derive",
]

[dependencies.clap_complete]
version = "4.5.62"

[dependencies.futures-util]
version = "0.3.31"

[dependencies.hmac]
version = "0.12.1"
features = ["std"]

[dependencies.libc]
version = "0.2.178"

[dependencies.log]
version = "0.4.29"

[dependencies.open]
version = "5.3.3"
optional = true

[dependencies.pbkdf2]
version = "0.12.2"

[dependencies.pkcs8]
version = "0.10.2"

[dependencies.rand]
version = "0.9.2"

[dependencies.rand_8]
version = "0.8.5"
package = "rand"

[dependencies.regex]
version = "1.12.2"

[dependencies.reqwest]
version = "0.12.28"
features = [
    "blocking",
    "json",
    "rustls-tls-native-roots",
]
default-features = false

[dependencies.rmpv]
version = "1.3.0"

[dependencies.rsa]
version = "0.9.9"

[dependencies.rustix]
version = "1.1.3"
features = [
    "termios",
    "process",
    "pipe",
    "mm",
]

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.147"

[dependencies.sha1]
version = "0.10.6"

[dependencies.sha2]
version = "0.10.9"

[dependencies.signature]
version = "2.2.0"

[dependencies.ssh-agent-lib]
version = "0.5.1"

[dependencies.tempfile]
version = "3.24.0"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.48.0"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "net",
    "fs",
    "time",
    "io-util",
    "process",
    "signal",
]

[dependencies.tokio-stream]
version = "0.1.17"
features = ["net"]

[dependencies.tokio-tungstenite]
version = "0.28"
features = [
    "rustls-tls-native-roots",
    "url",
]

[dependencies.url]
version = "2.5.7"

[dependencies.urlencoding]
version = "2.1.3"

[dependencies.zeroize]
version = "1.8.2"

[dev-dependencies.base64]
version = "0.22.1"

[dev-dependencies.rand_8]
version = "0.8.5"
package = "rand"

[dev-dependencies.reqwest]
version = "0.12.28"
features = [
    "blocking",
    "json",
    "rustls-tls-native-roots",
]
default-features = false

[dev-dependencies.rsa]
version = "0.9.9"

[dev-dependencies.serde_json]
version = "1.0.147"

[dev-dependencies.tempfile]
version = "3.24.0"

[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6"

[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.10"

[target.'cfg(target_os = "macos")'.dependencies.core-foundation-sys]
version = "0.8"

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3"
features = [
    "NSError",
    "NSString",
]

[target.'cfg(target_os = "macos")'.dependencies.objc2-local-authentication]
version = "0.3"
features = [
    "LAContext",
    "block2",
]

[target.'cfg(target_os = "macos")'.dependencies.security-framework]
version = "3"

[target.'cfg(target_os = "macos")'.dependencies.security-framework-sys]
version = "2"
features = ["OSX_10_13"]

[lints.clippy]
as_conversions = "warn"
cognitive_complexity = "allow"
fn_params_excessive_bools = "allow"
get_unwrap = "warn"
large_enum_variant = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
type_complexity = "allow"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1
