ume

GitHub MIT/Apache 2.0 Crates.io docs.rs

ume means "Embed" or "Japanese apricot" in Japanese.

ume is a simple macro to generate Rust source code.

How to use

rust let use_something = ume!( use something::prelude::*; ); let let_one = ume!(let one = 1;); let let_two = ume!(let two = 2;); let source_code = ume! { #use_something fn main() { #let_one #let_two println!("{one} {two}"); } }