[package]
name = "my_macro"
version = "0.1.0"
edition = "2021"

license = "MIT"  # 必须选择开源许可证（如MIT/Apache-2.0）
description = "A procedural macro for..."  # 简短描述


[lib]
proc-macro = true  # 关键：声明这是一个过程宏 crate

[dependencies]
syn = { version = "2.0", features = ["full"] }  # 解析 Rust 代码
quote = "1.0"  # 生成 Rust 代码
proc-macro2 = "1.0"  # 提供 TokenStream