# 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"
name = "pmcp-code-mode-derive"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive macro for Code Mode validation and execution in MCP servers"
readme = "README.md"
keywords = [
    "mcp",
    "code-mode",
    "derive",
    "proc-macro",
]
categories = ["development-tools::procedural-macro-helpers"]
license = "MIT"
repository = "https://github.com/paiml/rust-mcp-sdk"

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

[lib]
name = "pmcp_code_mode_derive"
path = "src/lib.rs"
proc-macro = true

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

[dependencies.darling]
version = "0.23"

[dependencies.proc-macro2]
version = "1.0"

[dependencies.quote]
version = "1.0"

[dependencies.syn]
version = "2.0"
features = [
    "full",
    "extra-traits",
]

[dev-dependencies.async-trait]
version = "0.1"

[dev-dependencies.pmcp]
version = ">=2.2.0"

[dev-dependencies.pmcp-code-mode]
version = "0.4.0"

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

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

[dev-dependencies.tokio]
version = "1"
features = ["full"]

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