1 unstable release

0.1.0 Dec 21, 2022

#69 in #code-generation

Download history 155/week @ 2024-03-11 133/week @ 2024-03-18 172/week @ 2024-03-25 188/week @ 2024-04-01 125/week @ 2024-04-08 211/week @ 2024-04-15 288/week @ 2024-04-22 135/week @ 2024-04-29 200/week @ 2024-05-06 167/week @ 2024-05-13 83/week @ 2024-05-20 105/week @ 2024-05-27 149/week @ 2024-06-03 115/week @ 2024-06-10 100/week @ 2024-06-17 172/week @ 2024-06-24

547 downloads per month
Used in 12 crates (via parol)

MIT/Apache

5KB
62 lines

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

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}");
    }
}

No runtime deps