Skip to main content

phoenix_macros/
lib.rs

1use proc_macro::TokenStream;
2
3/// Mark a Rust DTO as a Phoenix input, resource, page, or shared contract.
4///
5/// The attribute is intentionally representation-neutral. The Vite contract
6/// exporter reads the Rust declaration and applies Serde's wire rules.
7#[proc_macro_attribute]
8pub fn contract(_metadata: TokenStream, item: TokenStream) -> TokenStream {
9    item
10}