duplicate
duplicate copied to clipboard
Easy code duplicate with substitution for Rust
### Short Description: I was hoping to have a way to substitute a value in to the name of a token. For example: ```rust #[duplicate_item( int_type max_value; [ u8 ]...
### Short Description: Allows the use of `cfg` attributes on substitution groups, such that they can be enabled and disabled at build time. ### Motivation: See [this code](https://github.com/risc0/risc0/blob/5c5092a348123cbf243f6b6e36a479416b33a5ab/bonsai/sdk/src/lib.rs#L359). Here, they...
### Short Description: Provide a way for reusing `duplicate!` invocation code for multiple invocations ### Motivation: If we want to reuse the same invocation in multiple calls to different `duplicate!`s:...