Skip to content

Commit 96051bc

Browse files
committed
Fix workspace layout
1 parent 874df3b commit 96051bc

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
- 'crates/proc-macro-api/**'
3939
- 'crates/proc-macro-srv/**'
4040
- 'crates/proc-macro-srv-cli/**'
41-
- 'crates/proc-macro-test/**'
4241
4342
rust:
4443
needs: changes

crates/proc-macro-srv/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ expect-test = "1.4.0"
3737
proc-macro-test.path = "./proc-macro-test"
3838

3939
[features]
40-
sysroot-abi = []
40+
sysroot-abi = ["proc-macro-test/sysroot-abi"]

crates/proc-macro-srv/proc-macro-test/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ proc-macro-test-impl = { path = "imp", version = "0.0.0" }
1616

1717
# local deps
1818
toolchain.path = "../../toolchain"
19+
20+
[features]
21+
sysroot-abi = ["proc-macro-test-impl/sysroot-abi"]

crates/proc-macro-srv/proc-macro-test/imp/Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ publish = false
99
doctest = false
1010
proc-macro = true
1111

12-
[workspace]
13-
1412
[dependencies]
1513
# this crate should not have any dependencies, since it uses its own workspace,
1614
# and its own `Cargo.lock`
15+
16+
[features]
17+
sysroot-abi = []
18+
19+
[workspace]

crates/proc-macro-srv/proc-macro-test/imp/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Exports a few trivial procedural macros for testing.
22
3+
#![cfg(any(feature = "sysroot-abi", rust_analyzer))]
34
#![warn(rust_2018_idioms, unused_lifetimes)]
45
#![feature(proc_macro_span, proc_macro_def_site)]
56

0 commit comments

Comments
 (0)