# 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.87"
name = "npxc"
version = "0.1.0"
build = false
exclude = [
    "examples/sample.pdf",
    ".github",
    "target",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sandboxed npm execution for MCP servers via Apple container"
homepage = "https://github.com/tomchuk/npxc"
readme = "README.md"
keywords = [
    "mcp",
    "sandbox",
    "container",
    "npx",
    "security",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/tomchuk/npxc"

[features]
e2e = []

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

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

[[example]]
name = "mcp_probe"
path = "examples/mcp_probe.rs"

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

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

[dependencies.directories]
version = "5"

[dependencies.parking_lot]
version = "0.12"

[dependencies.semver]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

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

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

[dependencies.uuid]
version = "1"
features = ["v4"]

[dependencies.which]
version = "6"

[dev-dependencies.assert_cmd]
version = "2"

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

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