mcp-common 0.1.21

Common types and utilities shared across MCP proxy components
Documentation
# 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"
name = "mcp-common"
version = "0.1.21"
authors = ["nuwax-ai"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common types and utilities shared across MCP proxy components"
readme = "README.md"
keywords = [
    "mcp",
    "proxy",
    "protocol",
]
categories = [
    "web-programming",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/nuwax-ai/mcp-proxy"
resolver = "2"

[features]
default = []
otlp = [
    "telemetry",
    "opentelemetry-otlp",
    "tonic",
]
telemetry = [
    "opentelemetry",
    "opentelemetry_sdk",
    "tracing-opentelemetry",
    "tracing-subscriber",
]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.arc-swap]
version = "1.7"

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

[dependencies.dashmap]
version = "6.1"

[dependencies.opentelemetry]
version = "0.31"
features = ["trace"]
optional = true

[dependencies.opentelemetry-otlp]
version = "0.31"
features = ["grpc-tonic"]
optional = true

[dependencies.opentelemetry_sdk]
version = "0.31"
optional = true

[dependencies.process-wrap]
version = "9.0.3"
features = [
    "tokio1",
    "process-group",
    "job-object",
]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.tokio]
version = "1.48"
features = [
    "macros",
    "net",
    "rt",
    "rt-multi-thread",
]

[dependencies.tonic]
version = "0.13"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.32"
optional = true

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

[dependencies.which]
version = "7.0"

[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = ["Win32_System_Threading"]