1 unstable release

0.1.0 Dec 21, 2022

#74 in #code-generation

Download history 168/week @ 2024-07-22 123/week @ 2024-07-29 194/week @ 2024-08-05 138/week @ 2024-08-12 144/week @ 2024-08-19 137/week @ 2024-08-26 190/week @ 2024-09-02 119/week @ 2024-09-09 98/week @ 2024-09-16 139/week @ 2024-09-23 100/week @ 2024-09-30 137/week @ 2024-10-07 106/week @ 2024-10-14 141/week @ 2024-10-21 155/week @ 2024-10-28 142/week @ 2024-11-04

565 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