Cannot Use custom_inner_attribute

Hi, I want to use a procedural macro as a custom_inner_attribute. I have installed the nightly build of rustc, but I cannot seem to get this to work.

I have a procedural, attribute macro I want to apply to every function in a Rust project, so I have code like this in main.rs-

#![feature(custom_inner_attributes)]
#![my_macro]
use my_macro_crate::my_macro;
fn foo() { ... }

In particular, I don't know how to include the macro appropriately. I cannot place it before or after, and I am not sure if or how to make use of scopes correctly using

use my_macro_crate::my_macro;
pub mod {
    #![my_macro]
    fn foo () { ... }
}

or something like that.
Does anyone know how to use procedural macros as inner attributes?
Thanks.

That problem is solvable by writing full paths instead of use:

#![feature(custom_inner_attributes)]
#![my_macro_crate::my_macro]

However, I am not familiar with custom_inner_attributes so I can’t tell you about anything else that might be required.