mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Use all-features by default
This commit is contained in:
parent
77db617765
commit
f720855e1e
1 changed files with 7 additions and 1 deletions
|
@ -24,7 +24,7 @@ pub struct CargoWorkspace {
|
||||||
pub(crate) workspace_root: PathBuf,
|
pub(crate) workspace_root: PathBuf,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Clone, Debug, PartialEq, Eq, Default)]
|
#[derive(Deserialize, Clone, Debug, PartialEq, Eq)]
|
||||||
#[serde(rename_all = "camelCase", default)]
|
#[serde(rename_all = "camelCase", default)]
|
||||||
pub struct CargoFeatures {
|
pub struct CargoFeatures {
|
||||||
/// Do not activate the `default` feature.
|
/// Do not activate the `default` feature.
|
||||||
|
@ -38,6 +38,12 @@ pub struct CargoFeatures {
|
||||||
pub features: Vec<String>,
|
pub features: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for CargoFeatures {
|
||||||
|
fn default() -> Self {
|
||||||
|
CargoFeatures { no_default_features: false, all_features: true, features: Vec::new() }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
|
||||||
pub struct Package(RawId);
|
pub struct Package(RawId);
|
||||||
impl_arena_id!(Package);
|
impl_arena_id!(Package);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue