rusttoolkit 0.1.0

Rust toolkit with cool useful procedural macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use rusttoolkit::for_each;

// Generate functions at module level - use the new %{x} syntax
for_each!([hello], |x| {
    fn %{x}() -> &'static str {
        "working"
    }
});

#[test]
fn debug_simple_replacement() {
    // This should call the generated function
    assert_eq!(hello(), "working");
}