# 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 = "2024"
rust-version = "1.88"
name = "nbox"
version = "0.7.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Terminal UI and CLI for NetBox — fast search, IPAM lookups, and device context"
homepage = "https://github.com/lance0/nbox"
readme = "README.md"
keywords = [
    "netbox",
    "network",
    "ipam",
    "tui",
    "dcim",
]
categories = [
    "command-line-utilities",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lance0/nbox"

[features]
clipboard = ["dep:arboard"]
default = [
    "clipboard",
    "http",
    "keyring",
    "updates",
]
http = [
    "dep:axum",
    "dep:tower",
    "dep:tokio-util",
    "dep:jsonwebtoken",
    "dep:sha2",
    "rmcp/transport-streamable-http-server",
]
keyring = [
    "dep:keyring",
    "keyring/apple-native",
    "keyring/windows-native",
]
keyring-secret-service = [
    "keyring",
    "keyring/sync-secret-service",
    "keyring/crypto-rust",
    "keyring/vendored",
]
updates = ["dep:update-informer"]

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

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

[[test]]
name = "broken_pipe_tests"
path = "tests/broken_pipe_tests.rs"

[[test]]
name = "client_tests"
path = "tests/client_tests.rs"

[[test]]
name = "compat_tests"
path = "tests/compat_tests.rs"

[[test]]
name = "csv_contracts_tests"
path = "tests/csv_contracts_tests.rs"

[[test]]
name = "custom_fields_tests"
path = "tests/custom_fields_tests.rs"

[[test]]
name = "error_contract_tests"
path = "tests/error_contract_tests.rs"

[[test]]
name = "golden_output_tests"
path = "tests/golden_output_tests.rs"

[[test]]
name = "it_netbox"
path = "tests/it_netbox.rs"

[[test]]
name = "journal_inline_tests"
path = "tests/journal_inline_tests.rs"

[[test]]
name = "mcp_serve_http_tests"
path = "tests/mcp_serve_http_tests.rs"

[[test]]
name = "mcp_serve_tests"
path = "tests/mcp_serve_tests.rs"

[[test]]
name = "no_tui_tests"
path = "tests/no_tui_tests.rs"

[[test]]
name = "output_flags_tests"
path = "tests/output_flags_tests.rs"

[[test]]
name = "pagination_tests"
path = "tests/pagination_tests.rs"

[[test]]
name = "query_tests"
path = "tests/query_tests.rs"

[[test]]
name = "scope_tests"
path = "tests/scope_tests.rs"

[[test]]
name = "search_tests"
path = "tests/search_tests.rs"

[dependencies.anyhow]
version = "1"

[dependencies.arboard]
version = "3"
optional = true

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.clap_complete]
version = "4.6"

[dependencies.clap_mangen]
version = "0.3"

[dependencies.crossterm]
version = "0.29"
features = ["event-stream"]

[dependencies.dirs]
version = "6"

[dependencies.futures]
version = "0.3"

[dependencies.indexmap]
version = "2"
features = ["serde"]

[dependencies.ipnet]
version = "2"

[dependencies.is-terminal]
version = "0.4"

[dependencies.jsonwebtoken]
version = "10"
features = [
    "rust_crypto",
    "use_pem",
]
optional = true
default-features = false

[dependencies.keyring]
version = "=3.6.3"
optional = true

[dependencies.nucleo]
version = "0.5"

[dependencies.open]
version = "5"

[dependencies.ratatui]
version = "0.30"

[dependencies.ratatui-cheese]
version = "=0.7.0"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.rmcp]
version = "1.7"
features = [
    "server",
    "macros",
    "transport-io",
]
default-features = false

[dependencies.schemars]
version = "=1.2.1"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-util]
version = "0.7"
optional = true

[dependencies.toml]
version = "1"
features = ["preserve_order"]

[dependencies.toml_edit]
version = "0.25"

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-appender]
version = "0.2"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.unicode-width]
version = "0.2"

[dependencies.update-informer]
version = "1"
features = [
    "github",
    "ureq",
    "rustls-tls",
]
optional = true
default-features = false

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

[dev-dependencies.insta]
version = "1"

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.rsa]
version = "0.9"
features = ["pem"]

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

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.wiremock]
version = "0.6"

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
items_after_statements = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
redundant_else = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
used_underscore_binding = "allow"

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

[profile.release]
lto = true
codegen-units = 1
strip = true
