compose-idents 0.3.0

A Rust macro for generating new identifiers (names of variables, functions, traits, etc) by concatenating one or more arbitrary parts and applying other manipulations.
Documentation
//! compose_idents! should work when invoked inside a macro_rules! macro.
use compose_idents::compose;

macro_rules! outer_macro {
    ($name:tt) => {
        compose!(my_fn = concat(foo, _, $name), {
            fn my_fn() -> u32 {
                42
            }
        });
    };
}

outer_macro!(baz);
outer_macro!(bar);

fn main() {
    assert_eq!(foo_baz(), 42);
    assert_eq!(foo_bar(), 42);
}