rust-mcp-schema 2.0.0

Type-safe implementation of the Model Context Protocol in Rust, designed to reduce errors and accelerate development with powerful utilities.
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 = "2021"
rust-version = "1.80.0"
name = "rust-mcp-schema"
version = "2.0.0"
authors = ["Ali Hashemi"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-safe implementation of the Model Context Protocol in Rust, designed to reduce errors and accelerate development with powerful utilities."
documentation = "https://docs.rs/rust-mcp-schema"
readme = "README.md"
keywords = [
    "rust-mcp-stack",
    "model",
    "context",
    "protocol",
    "schema",
]
categories = [
    "data-structures",
    "parser-implementations",
    "parsing",
]
license = "MIT"
repository = "https://github.com/rust-mcp-stack/rust-mcp-schema"

[package.metadata.docs.rs]
features = [
    "2026_07_28",
    "schema_utils",
]
rustdoc-args = ["--generate-link-to-definition"]

[package.metadata.playground]
features = [
    "2026_07_28",
    "schema_utils",
]

[package.metadata.typos.default]
extend-ignore-re = [
    "a5ba501",
    "0af7651916cd43dd8448eb211c80319c",
    "00f067aa0ba902b7",
]

[features]
2024_11_05 = []
2025_03_26 = []
2025_06_18 = []
2025_11_25 = []
2026_07_28 = ["latest"]
default = [
    "2026_07_28",
    "schema_utils",
]
draft = []
latest = ["2026_07_28"]
schema_utils = []

[lib]
name = "rust_mcp_schema"
path = "src/rust-mcp-schema.rs"

[[example]]
name = "mcp_client_handle_message"
path = "examples/mcp_client_handle_message.rs"
required-features = [
    "2026_07_28",
    "schema_utils",
]

[[example]]
name = "mcp_server_handle_message"
path = "examples/mcp_server_handle_message.rs"
required-features = [
    "2026_07_28",
    "schema_utils",
]

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

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

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

[dependencies.serde_json]
version = "1.0.143"

[dev-dependencies.json5]
version = "0.4"

[lints]