Lines Matching +full:ci +full:- +full:crate
1 # proc-macro2
3 …/badge/github-dtolnay/proc--macro2-8da0cb?style=for-the-badge&labelColor=555555&logo=github" heigh…
4 …g.shields.io/crates/v/proc-macro2.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](ht…
5 …ields.io/badge/docs.rs-proc--macro2-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs" hei…
6 …workflow/status/dtolnay/proc-macro2/ci.yml?branch=master&style=for-the-badge" height="20">](https:…
8 A wrapper around the procedural macro API of the compiler's `proc_macro` crate.
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"
38 extern crate proc_macro;
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
73 Note that this must not only be done for your crate, but for any crate that
74 depends on your crate. This infectious nature is intentional, as it serves as a
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