Expand description
Code generation for the #[contract] attribute macro.
Wraps fn main() to automatically call rorpc::generate_contract().output(path)
in debug builds. Supports compile-time path expressions including env!(),
concat!(), string literals, and constants.
Resolution order when no argument is provided:
[package.metadata.rorpc] client_pathinCargo.toml(read at macro expansion time)env!("RORPC_CLIENT_PATH")fallback
Structs§
- Contract
Args - Parsed arguments for
#[contract(...)]attribute.
Functions§
- expand_
contract - Expand
#[contract(...)] fn main() { ... }into: