Skip to content

Commit ea99b07

Browse files
committed
Add proc-macro2-fallback crate containing just the fallback implementation
1 parent 64b4608 commit ea99b07

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ nightly = []
4242
doc-scrape-examples = false
4343

4444
[workspace]
45-
members = ["benches/bench-libproc-macro", "tests/ui"]
45+
members = ["benches/bench-libproc-macro", "fallback", "tests/ui"]
4646

4747
[patch.crates-io]
4848
# Our doc tests depend on quote which depends on proc-macro2. Without this line,

fallback/Cargo.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[package]
2+
name = "proc-macro2-fallback"
3+
version = "1.0.66"
4+
authors = ["David Tolnay <dtolnay@gmail.com>"]
5+
edition = "2021"
6+
license = "MIT OR Apache-2.0"
7+
repository = "https://github.com/dtolnay/proc-macro2"
8+
9+
[lib]
10+
path = "../src/lib.rs"
11+
doc-scrape-examples = false
12+
13+
[package.metadata.docs.rs]
14+
rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"]
15+
targets = ["x86_64-unknown-linux-gnu"]
16+
17+
[dependencies]
18+
unicode-ident = "1"
19+
20+
[dev-dependencies]
21+
proc-macro2 = { version = "1", path = "..", default_features = false }
22+
quote = { version = "1", default_features = false }

0 commit comments

Comments
 (0)