• Home
  • Raw
  • Download

Lines Matching +full:docs +full:- +full:src

1 # proc-macro2
3src="https://img.shields.io/badge/github-dtolnay/proc--macro2-8da0cb?style=for-the-badge&labelColo…
4 …s.io" src="https://img.shields.io/crates/v/proc-macro2.svg?style=for-the-badge&color=fc8d62&logo=r…
5docs.rs" src="https://img.shields.io/badge/docs.rs-proc--macro2-66c2a5?style=for-the-badge&labelCo…
6src="https://img.shields.io/github/actions/workflow/status/dtolnay/proc-macro2/ci.yml?branch=maste…
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 {
55 [`parse_macro_input!`]: https://docs.rs/syn/2.0/syn/macro.parse_macro_input.html
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