mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 18:26:19 +00:00
Merge pull request #19204 from kazatsuyu/allow-package-specific-feature
Allow "package/feature" format feature flag
This commit is contained in:
commit
2f5e8d7879
1 changed files with 3 additions and 1 deletions
|
|
@ -594,7 +594,9 @@ impl CargoWorkspace {
|
|||
.filter_map(|package| {
|
||||
let package = &self[package];
|
||||
if package.is_member {
|
||||
Some(package.features.keys().cloned())
|
||||
Some(package.features.keys().cloned().chain(
|
||||
package.features.keys().map(|key| format!("{}/{key}", package.name)),
|
||||
))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue