Rust syntax extension to handle routing attribute