1 unstable release
0.1.0 | Dec 21, 2022 |
---|
#74 in #code-generation
565 downloads per month
Used in 12 crates
(via parol)
5KB
62 lines
ume
ume
means "Embed" or "Japanese apricot" in Japanese.
ume
is a simple macro to generate Rust source code.
How to use
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}");
}
}