Casing macros plugin for Rust.
assert_eq!("a string", to_lower!("A String"));
assert_eq!("A STRING", to_upper!("A String"));
/// Can be used with identifiers with stringify!
assert_eq!("identifier", to_lower!(stringify!(Identifier)));
Copied from rust-lang/rust#16636. Credits go to @Manishearth.
Add this in your lib.rs
:
#![feature(plugin)]
#![plugin(casing_macros)]