ume

Crates.ioume
lib.rsume
version0.1.0
sourcesrc
created_at2022-12-21 12:21:43.462763
updated_at2022-12-21 12:21:43.462763
descriptionA simple macro for generating Rust codes
homepage
repositoryhttps://github.com/ryo33/ume
max_upload_size
id743119
size6,630
Ryo Hirayama (ryo33)

documentation

https://docs.rs/ume

README

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}");
    }
}
Commit count: 9

cargo fmt