fastmcp-rust 0.2.0

Fast, cancel-correct MCP framework for Rust
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 = "fastmcp-rust"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, cancel-correct MCP framework for Rust"
homepage = "https://github.com/Dicklesworthstone/fastmcp_rust"
documentation = "https://docs.rs/fastmcp-rust"
readme = "README.md"
keywords = [
    "mcp",
    "json-rpc",
    "async",
    "ai",
    "protocol",
]
categories = [
    "network-programming",
    "api-bindings",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/Dicklesworthstone/fastmcp_rust"
resolver = "2"

[features]
jwt = ["fastmcp-server/jwt"]

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.asupersync]
version = "0.2.0"

[dependencies.fastmcp-client]
version = "0.2.0"

[dependencies.fastmcp-core]
version = "0.2.0"

[dependencies.fastmcp-derive]
version = "0.2.0"

[dependencies.fastmcp-protocol]
version = "0.2.0"

[dependencies.fastmcp-server]
version = "0.2.0"

[dependencies.fastmcp-transport]
version = "0.2.0"

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

[dependencies.serde_json]
version = "1"

[dev-dependencies.jsonwebtoken]
version = "10.2.0"
features = ["rust_crypto"]
default-features = false

[dev-dependencies.trybuild]
version = "1"
default-features = false

[lints.clippy]
approx_constant = "allow"
assigning_clones = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_copy = "allow"
collapsible_if = "allow"
decimal_bitwise_operands = "allow"
derivable_impls = "allow"
doc_link_with_quotes = "allow"
doc_markdown = "allow"
field_reassign_with_default = "allow"
format_push_string = "allow"
if_not_else = "allow"
implicit_clone = "allow"
io_other_error = "allow"
items_after_statements = "allow"
len_zero = "allow"
manual_assert = "allow"
manual_div_ceil = "allow"
manual_let_else = "allow"
manual_pattern_char_comparison = "allow"
manual_split_once = "allow"
manual_string_new = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
mut_range_bound = "allow"
needless_borrows_for_generic_args = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
ptr_arg = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
should_implement_trait = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
unchecked_time_subtraction = "allow"
uninlined_format_args = "allow"
unnecessary_unwrap = "allow"
unreadable_literal = "allow"
unused_self = "allow"
vec_init_then_push = "allow"

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

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

[lints.rust]
unsafe_code = "warn"