pub struct PathSource<'cfg> { /* private fields */ }

Implementations

Invoked with an absolute path to a directory that contains a Cargo.toml.

This source will only return the package at precisely the path specified, and it will be an error if there’s not a package at path.

Creates a new source which is walked recursively to discover packages.

This is similar to the new method except that instead of requiring a valid package to be present at root the folder is walked entirely to crawl for packages.

Note that this should be used with care and likely shouldn’t be chosen by default!

List all files relevant to building this package inside this source.

This function will use the appropriate methods to determine the set of files underneath this source’s directory which are relevant for building pkg.

The basic assumption of this method is that all files in the directory are relevant for building this package, but it also contains logic to use other methods like .gitignore to filter the list of files.

Trait Implementations

Formats the value using the given formatter. Read more

Attempts to find the packages that match a dependency request.

Returns whether or not this source will return summaries with checksums listed. Read more

Returns whether or not this source will return summaries with the precise field in the source id listed. Read more

Returns the SourceId corresponding to this source.

Fetches the full package for each name and version specified.

Generates a unique string which represents the fingerprint of the current state of the source. Read more

Describes this source in a human readable fashion, used for display in resolver error messages currently. Read more

Add a number of crates that should be whitelisted for showing up during queries, even if they are yanked. Currently only applies to registry sources. Read more

Query if a package is yanked. Only registry sources can mark packages as yanked. This ignores the yanked whitelist. Read more

Block until all outstanding Poll::Pending requests are Poll::Ready. Read more

Ensure that the source is fully up-to-date for the current session on the next query.

Returns the replaced SourceId corresponding to this source.

If this source supports it, verifies the source of the package specified. Read more

Returns whether a source is being replaced by another here.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.