mcpkit-core 0.7.0

Core types and traits for the Model Context Protocol (MCP)
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"
rust-version = "1.85"
name = "mcpkit-core"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types and traits for the Model Context Protocol (MCP)"
readme = "README.md"
keywords = [
    "mcp",
    "mcp-protocol",
    "ai",
    "llm",
    "sdk",
]
categories = [
    "api-bindings",
    "asynchronous",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/praxiomlabs/mcpkit"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
fancy-errors = ["miette/fancy"]
jwt = [
    "dep:reqwest",
    "dep:jsonwebtoken",
]

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

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

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

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

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

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

[dependencies.base64]
version = "0.22"

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

[dependencies.event-listener]
version = "5.4"

[dependencies.jsonwebtoken]
version = "10.0"
features = ["rust_crypto"]
optional = true

[dependencies.miette]
version = "7.0"
features = ["fancy"]

[dependencies.rand]
version = "0.8"

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2.0"

[dependencies.url]
version = "2.5"
features = ["serde"]

[dependencies.uuid]
version = "1.0"
features = [
    "v4",
    "serde",
    "js",
]

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

[dev-dependencies.p256]
version = "0.13"
features = [
    "ecdsa",
    "pkcs8",
]

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

[dev-dependencies.proptest]
version = "1.6"

[dev-dependencies.rmcp]
version = "2.2"

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

[dev-dependencies.tokio]
version = "1.35"
features = [
    "full",
    "rt-multi-thread",
    "macros",
    "time",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]

[lints.clippy]
approx_constant = "allow"
assertions_on_constants = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
double_must_use = "allow"
duplicated_attributes = "allow"
float_cmp = "allow"
format_collect = "allow"
format_push_string = "allow"
future_not_send = "allow"
implicit_hasher = "allow"
literal_string_with_formatting_args = "allow"
manual_let_else = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
mixed_attributes_style = "allow"
module_inception = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_return = "allow"
new_ret_no_self = "allow"
option_if_let_else = "allow"
result_large_err = "allow"
return_self_not_must_use = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_match = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
type_complexity = "allow"
type_repetition_in_bounds = "allow"
unnecessary_literal_bound = "allow"
unreadable_literal = "allow"
unused_async = "allow"
unused_self = "allow"
use_self = "allow"
while_let_loop = "allow"

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

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

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

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
unused_assignments = "allow"