8000 GitHub - soqb/proc-macro3: context-based cfg for proc macros - all the benefits of proc-macro2 with none of the slow compile times
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

context-based cfg for proc macros - all the benefits of proc-macro2 with none of the slow compile times

Notifications You must be signed in to change notification settings

soqb/proc-macro3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History 8690

10 Commits
 
 
 
 
 
 

Repository files navigation

proc-macro3

defines a macro that imports either from proc_macro or proc-macro2 depending on the proc-macro2 feature flag.

Examples

proc_macro3::import!(); // creates a module named 'proc_macro'
use proc_macro::TokenStream; // uses from the newly created module

fn uses_token_steam(input: TokenStream) -> TokenStream {
    in_some_way(input)
}

About

context-based cfg for proc macros - all the benefits of proc-macro2 with none of the slow compile times

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0