# 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"
version = "0.2.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for the Model Context Protocol (MCP) - the official facade crate providing unified access to all mcpkit functionality"
homepage = "https://github.com/praxiomlabs/mcpkit"
documentation = "https://docs.rs/mcpkit"
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]
client = []
default = [
    "server",
    "client",
    "tokio-runtime",
]
full = [
    "websocket",
    "http",
]
http = ["mcpkit-transport/http"]
server = []
tokio-runtime = [
    "mcpkit-transport/tokio-runtime",
    "mcpkit-server/tokio-runtime",
    "mcpkit-client/tokio-runtime",
]
websocket = ["mcpkit-transport/websocket"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.mcpkit-client]
version = "0.2.4"

[dependencies.mcpkit-core]
version = "0.2.4"

[dependencies.mcpkit-macros]
version = "0.2.4"

[dependencies.mcpkit-server]
version = "0.2.4"

[dependencies.mcpkit-transport]
version = "0.2.4"

[dev-dependencies.axum]
version = "0.8"

[dev-dependencies.futures]
version = "0.3"

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

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

[dev-dependencies.serde_json]
version = "1.0"

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

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

[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"
double_must_use = "allow"
duplicated_attributes = "allow"
float_cmp = "allow"
format_collect = "allow"
format_push_string = "allow"
future_not_send = "allow"
implicit_hasher = "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_repetition_in_bounds = "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"
