Lines Matching +full:proc +full:- +full:macro2
1 # proc-macro2 chapter
3 …dge/github-dtolnay/proc--macro2-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="…
4 ….shields.io/crates/v/proc-macro2.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](htt…
5 …ds.io/badge/docs.rs-proc--macro2-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs" height…
6 …orkflow/status/dtolnay/proc-macro2/ci.yml?branch=master&style=for-the-badge" height="20">](https:/…
11 - **Bring proc-macro-like functionality to other contexts like build.rs and
14 `proc_macro2` types may exist anywhere including non-macro code. By developing
17 many other use cases and we avoid reimplementing non-macro equivalents of
20 - **Make procedural macros unit testable.** As a consequence of being specific
32 proc-macro2 = "1.0"
41 pub fn my_derive(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
59 The default feature set of proc-macro2 tracks the most recent stable compiler
61 proc-macro2 by default.
65 polyfill those nightly-only APIs back to Rust 1.56.0. As these are unstable APIs
66 that track the nightly compiler, minor versions of proc-macro2 may make breaking
70 RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo build
77 Semver exempt methods are marked as such in the proc-macro2 documentation.
84 Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
85 2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
92 for inclusion in this crate by you, as defined in the Apache-2.0 license, shall