self
}
- /// Set the available features of the dependency to a given vec
- pub fn set_available_features(
- mut self,
- available_features: BTreeMap<String, Vec<String>>,
- ) -> Self {
- self.available_features = available_features;
- self
- }
-
/// Populate from cargo
pub fn set_available_features_from_cargo(
mut self,
// Overwrite with `crate_spec`
old_dep.source = selected_dep.source;
}
- old_dep = populate_dependency(old_dep, arg);
- old_dep.available_features = selected_dep.available_features;
- old_dep
+ populate_dependency(old_dep, arg)
}
} else {
selected_dep
))?;
dependency.name = latest.name; // Normalize the name
}
- dependency = dependency
- .set_source(latest.source.expect("latest always has a source"))
- .set_available_features(latest.available_features);
+ dependency = dependency.set_source(latest.source.expect("latest always has a source"));
}
}