Fix workspace layout

This commit is contained in:
Lukas Wirth 2023-12-15 15:57:27 +01:00
parent 874df3bffa
commit 96051bc0d8
5 changed files with 10 additions and 4 deletions

View file

@ -38,7 +38,6 @@ jobs:
- 'crates/proc-macro-api/**'
- 'crates/proc-macro-srv/**'
- 'crates/proc-macro-srv-cli/**'
- 'crates/proc-macro-test/**'
rust:
needs: changes

View file

@ -37,4 +37,4 @@ expect-test = "1.4.0"
proc-macro-test.path = "./proc-macro-test"
[features]
sysroot-abi = []
sysroot-abi = ["proc-macro-test/sysroot-abi"]

View file

@ -16,3 +16,6 @@ proc-macro-test-impl = { path = "imp", version = "0.0.0" }
# local deps
toolchain.path = "../../toolchain"
[features]
sysroot-abi = ["proc-macro-test-impl/sysroot-abi"]

View file

@ -9,8 +9,11 @@ publish = false
doctest = false
proc-macro = true
[workspace]
[dependencies]
# this crate should not have any dependencies, since it uses its own workspace,
# and its own `Cargo.lock`
[features]
sysroot-abi = []
[workspace]

View file

@ -1,5 +1,6 @@
//! Exports a few trivial procedural macros for testing.
#![cfg(any(feature = "sysroot-abi", rust_analyzer))]
#![warn(rust_2018_idioms, unused_lifetimes)]
#![feature(proc_macro_span, proc_macro_def_site)]