mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
Fix workspace layout
This commit is contained in:
parent
874df3bffa
commit
96051bc0d8
5 changed files with 10 additions and 4 deletions
1
.github/workflows/ci.yaml
vendored
1
.github/workflows/ci.yaml
vendored
|
@ -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
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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,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)]
|
||||
|
||||
|
|
Loading…
Reference in a new issue