# 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.95"
name = "mcp-gateway"
version = "3.1.0"
authors = ["Mikko Parkkola <mikko.parkkola@iki.fi>"]
build = false
include = [
    "Cargo.toml",
    "Cargo.lock",
    "README.md",
    "LICENSE",
    "CHANGELOG.md",
    "CODE_OF_CONDUCT.md",
    "CONTRIBUTING.md",
    "SECURITY.md",
    "llms.txt",
    "demo.tape",
    "src/**",
    "tests/**",
    "benches/**",
    "benchmarks/**",
    "capabilities/**",
    "examples/**",
    "docs/ARCHITECTURE.md",
    "docs/BENCHMARKS.md",
    "docs/COMMUNITY_REGISTRY.md",
    "docs/QUICKSTART.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Universal MCP Gateway - Single-port multiplexing with Meta-MCP for ~95% context token savings"
homepage = "https://github.com/MikkoParkkola/mcp-gateway"
documentation = "https://github.com/MikkoParkkola/mcp-gateway#readme"
readme = "README.md"
keywords = [
    "mcp",
    "model-context",
    "gateway",
    "proxy",
    "ai",
]
categories = [
    "command-line-utilities",
    "network-programming",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/MikkoParkkola/mcp-gateway"
resolver = "2"

[features]
a2a = []
config-export = []
cost-governance = []
default = [
    "a2a",
    "webui",
    "config-export",
    "cost-governance",
    "firewall",
    "discovery",
    "semantic-search",
    "tool-profiles",
    "metrics",
]
discovery = []
firewall = []
metrics = ["dep:metrics-exporter-prometheus"]
runtime-substrate = []
semantic-search = []
spec-preview = []
tool-profiles = []
webui = []

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

[[bin]]
name = "mcp-gateway"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "gateway_benchmarks"
path = "benches/gateway_benchmarks.rs"
harness = false

[dependencies.anyhow]
version = "1.0"

[dependencies.async-stream]
version = "0.3"

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.8"
features = [
    "tracing",
    "http2",
]

[dependencies.axum-server]
version = "0.8"
features = ["tls-rustls"]

[dependencies.backon]
version = "1.6"
features = [
    "std",
    "tokio-sleep",
]
default-features = false

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1.11.1"

[dependencies.chrono]
version = "0.4.45"
features = ["serde"]

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

[dependencies.clap_complete]
version = "4.6"

[dependencies.dashmap]
version = "6.2"

[dependencies.dirs]
version = "6.0"

[dependencies.dotenvy]
version = "0.15"

[dependencies.figment]
version = "0.10"
features = [
    "yaml",
    "env",
]

[dependencies.futures]
version = "0.3"

[dependencies.glob]
version = "0.3"

[dependencies.governor]
version = "0.10"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.13"

[dependencies.jsonwebtoken]
version = "10.4"
features = [
    "use_pem",
    "aws_lc_rs",
]

[dependencies.metrics-exporter-prometheus]
version = "0.18"
optional = true

[dependencies.notify]
version = "8.0"

[dependencies.parking_lot]
version = "0.12"

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.quick-xml]
version = "0.41"

[dependencies.rand]
version = "0.10"

[dependencies.rcgen]
version = "0.14"
features = [
    "pem",
    "x509-parser",
]

[dependencies.regex]
version = "1.11"

[dependencies.reqwest]
version = "0.13"
features = [
    "rustls",
    "json",
    "stream",
    "form",
    "query",
    "gzip",
    "deflate",
    "brotli",
]
default-features = false

[dependencies.ring]
version = "0.17"

[dependencies.rustix]
version = "1.1"
features = ["fs"]

[dependencies.rustls]
version = "0.23.40"
features = ["aws_lc_rs"]
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.11"

[dependencies.shlex]
version = "2.0"

[dependencies.subtle]
version = "2.6"

[dependencies.telemetry_metrics]
version = "0.24"
package = "metrics"

[dependencies.thiserror]
version = "2.0"

[dependencies.time]
version = "0.3.47"
default-features = false

[dependencies.tokio]
version = "1.52"
features = [
    "full",
    "tracing",
]

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]

[dependencies.tokio-tungstenite]
version = "0.29.0"
features = ["rustls-tls-webpki-roots"]

[dependencies.tokio-util]
version = "0.7"
features = [
    "codec",
    "io",
]

[dependencies.tower]
version = "0.5"
features = [
    "timeout",
    "limit",
    "load-shed",
    "retry",
]

[dependencies.tower-http]
version = "0.7"
features = [
    "cors",
    "trace",
    "timeout",
    "compression-gzip",
    "request-id",
    "catch-panic",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3.20"
features = [
    "env-filter",
    "json",
    "fmt",
]

[dependencies.url]
version = "2.5"

[dependencies.uuid]
version = "1.23"
features = [
    "v4",
    "fast-rng",
]

[dependencies.walkdir]
version = "2.5"

[dependencies.x509-parser]
version = "0.18"

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.pretty_assertions]
version = "1.4"

[dev-dependencies.serde_urlencoded]
version = "0.7"

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

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

[lints.clippy]
duration_suboptimal_units = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
unused_async = "allow"

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

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

[lints.rust]
unsafe_code = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]

[profile.dev]
debug = 0
strip = true

[profile.release]
lto = "thin"
codegen-units = 1
panic = "abort"
strip = true
