pub struct FeatureResolver<'a, 'gctx> { /* private fields */ }Expand description
The new feature resolver that resolves your project.
For more information, please see the module-level documentation.
Implementations§
Source§impl<'a, 'gctx> FeatureResolver<'a, 'gctx>
impl<'a, 'gctx> FeatureResolver<'a, 'gctx>
Sourcepub fn resolve(
ws: &Workspace<'gctx>,
target_data: &'a mut RustcTargetData<'gctx>,
resolve: &Resolve,
package_set: &'a PackageSet<'gctx>,
cli_features: &CliFeatures,
specs: &[PackageIdSpec],
requested_targets: &[CompileKind],
opts: FeatureOpts,
) -> CargoResult<ResolvedFeatures>
pub fn resolve( ws: &Workspace<'gctx>, target_data: &'a mut RustcTargetData<'gctx>, resolve: &Resolve, package_set: &'a PackageSet<'gctx>, cli_features: &CliFeatures, specs: &[PackageIdSpec], requested_targets: &[CompileKind], opts: FeatureOpts, ) -> CargoResult<ResolvedFeatures>
Runs the resolution algorithm and returns a new ResolvedFeatures
with the result.
Auto Trait Implementations§
impl<'a, 'gctx> !RefUnwindSafe for FeatureResolver<'a, 'gctx>
impl<'a, 'gctx> !Send for FeatureResolver<'a, 'gctx>
impl<'a, 'gctx> !Sync for FeatureResolver<'a, 'gctx>
impl<'a, 'gctx> !UnwindSafe for FeatureResolver<'a, 'gctx>
impl<'a, 'gctx> Freeze for FeatureResolver<'a, 'gctx>
impl<'a, 'gctx> Unpin for FeatureResolver<'a, 'gctx>
impl<'a, 'gctx> UnsafeUnpin for FeatureResolver<'a, 'gctx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more