mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 15:14:32 +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,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Clone, Debug, PartialEq, Eq, Default)]
|
||||
#[derive(Deserialize, Clone, Debug, PartialEq, Eq)]
|
||||
#[serde(rename_all = "camelCase", default)]
|
||||
pub struct CargoFeatures {
|
||||
/// Do not activate the `default` feature.
|
||||
|
@ -38,6 +38,12 @@ pub struct CargoFeatures {
|
|||
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)]
|
||||
pub struct Package(RawId);
|
||||
impl_arena_id!(Package);
|
||||
|
|
Loading…
Reference in a new issue