pub(crate) struct Vendor {
pub(crate) sync_args: Vec<PathBuf>,
pub(crate) versioned_dirs: bool,
pub(crate) root_dir: PathBuf,
pub(crate) output_dir: PathBuf,
}
Expand description
Defines the vendoring step in the bootstrap process.
This step executes cargo vendor
to collect all dependencies
and store them in the <src>/<VENDOR_DIR>
directory.
Fields§
§sync_args: Vec<PathBuf>
Additional paths to synchronize during vendoring.
versioned_dirs: bool
Determines whether vendored dependencies use versioned directories.
root_dir: PathBuf
The root directory of the source code.
output_dir: PathBuf
The target directory for storing vendored dependencies.
Trait Implementations§
Source§impl Step for Vendor
impl Step for Vendor
Source§fn run(self, builder: &Builder<'_>) -> Self::Output
fn run(self, builder: &Builder<'_>) -> Self::Output
Executes the vendoring process.
This function runs cargo vendor
and ensures all required submodules
are initialized before vendoring begins.
Source§const DEFAULT: bool = true
const DEFAULT: bool = true
describe
macro in Builder::get_step_descriptions
. Read moreSource§const ONLY_HOSTS: bool = true
const ONLY_HOSTS: bool = true
Source§type Output = VendorOutput
type Output = VendorOutput
Step::run
.Source§fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
Step
should be run when given specific paths (e.g., x build $path
).Source§fn make_run(run: RunConfig<'_>)
fn make_run(run: RunConfig<'_>)
Step
handler when not triggered indirectly by other Step
s using Builder::ensure
.
For example, ./x.py test bootstrap
runs this for test::Bootstrap
. Similarly, ./x.py test
runs it for every step
that is listed by the describe
macro in Builder::get_step_descriptions
.impl Eq for Vendor
impl StructuralPartialEq for Vendor
Auto Trait Implementations§
impl Freeze for Vendor
impl RefUnwindSafe for Vendor
impl Send for Vendor
impl Sync for Vendor
impl Unpin for Vendor
impl UnwindSafe for Vendor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes