[package]
edition = "2024"
rust-version = "1.97.1"
name = "libmcp-derive"
version = "2.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive macros for libmcp model-facing projection traits."
homepage = "https://github.com/aoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoa/libmcp"
readme = "README.md"
keywords = [
"mcp",
"tooling",
"ai",
"json-rpc",
"operations",
]
categories = [
"development-tools",
"command-line-utilities",
]
license = "Apache-2.0"
repository = "https://github.com/aoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoa/libmcp"
[lib]
name = "libmcp_derive"
path = "src/lib.rs"
proc-macro = true
[[test]]
name = "ui"
path = "tests/ui.rs"
[dependencies.proc-macro-crate]
version = "3.5.0"
[dependencies.proc-macro2]
version = "1.0.103"
[dependencies.quote]
version = "1.0.41"
[dependencies.syn]
version = "2.0.108"
features = ["full"]
[dev-dependencies.trybuild]
version = "1.0.118"
[lints.clippy]
allow_attributes_without_reason = "deny"
cargo_common_metadata = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
dbg_macro = "deny"
expect_used = "deny"
float_cmp = "allow"
ignored_unit_patterns = "allow"
implicit_hasher = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
no_effect_underscore_binding = "allow"
panic = "deny"
redundant_closure_for_method_calls = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
struct_field_names = "allow"
todo = "deny"
too_many_arguments = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unimplemented = "deny"
uninlined_format_args = "allow"
unnested_or_patterns = "allow"
unused_async = "allow"
unwrap_used = "deny"
used_underscore_binding = "allow"
[lints.clippy.all]
level = "deny"
priority = -2
[lints.clippy.cargo]
level = "warn"
priority = -3
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "deny"
missing_docs = "deny"
unexpected_cfgs = "deny"
unsafe_code = "deny"
unused_crate_dependencies = "warn"
unused_lifetimes = "deny"
unused_qualifications = "deny"
unused_results = "deny"
[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"