1 unstable release

0.1.0 Dec 21, 2022

#70 in #code-generation

Download history 135/week @ 2024-02-29 156/week @ 2024-03-07 135/week @ 2024-03-14 182/week @ 2024-03-21 170/week @ 2024-03-28 134/week @ 2024-04-04 167/week @ 2024-04-11 178/week @ 2024-04-18 314/week @ 2024-04-25 172/week @ 2024-05-02 149/week @ 2024-05-09 144/week @ 2024-05-16 98/week @ 2024-05-23 130/week @ 2024-05-30 133/week @ 2024-06-06 65/week @ 2024-06-13

433 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