Crates.io | ume |
lib.rs | ume |
version | 0.1.0 |
source | src |
created_at | 2022-12-21 12:21:43.462763 |
updated_at | 2022-12-21 12:21:43.462763 |
description | A simple macro for generating Rust codes |
homepage | |
repository | https://github.com/ryo33/ume |
max_upload_size | |
id | 743119 |
size | 6,630 |
ume
means "Embed" or "Japanese apricot" in Japanese.
ume
is a simple macro to generate Rust source code.
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}");
}
}