Skip to content

Commit

Permalink
Add proc-macro2-fallback crate containing just the fallback implement…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
dtolnay committed Jul 17, 2023
1 parent 64b4608 commit 393980d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ nightly = []
doc-scrape-examples = false

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

[patch.crates-io]
# Our doc tests depend on quote which depends on proc-macro2. Without this line,
Expand Down
22 changes: 22 additions & 0 deletions fallback/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
name = "proc-macro2-fallback"
version = "1.0.66"
authors = ["David Tolnay <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtolnay/proc-macro2"

[lib]
path = "../src/lib.rs"
doc-scrape-examples = false

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
unicode-ident = "1"

[dev-dependencies]
proc-macro2 = { version = "1", path = ".." }
quote = { version = "1", default_features = false }

0 comments on commit 393980d

Please sign in to comment.