Skip to content

Commit

Permalink
Fix workspace layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Dec 15, 2023
1 parent b1903af commit 1817c88
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/proc-macro-srv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ expect-test = "1.4.0"
proc-macro-test.path = "./proc-macro-test"

[features]
sysroot-abi = []
sysroot-abi = ["proc-macro-test/sysroot-abi"]
3 changes: 3 additions & 0 deletions crates/proc-macro-srv/proc-macro-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
7 changes: 5 additions & 2 deletions crates/proc-macro-srv/proc-macro-test/imp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
1 change: 1 addition & 0 deletions crates/proc-macro-srv/proc-macro-test/imp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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)]

Expand Down

0 comments on commit 1817c88

Please sign in to comment.