Struct cargo_bazel::cli::VendorOptions
source · pub struct VendorOptions {
pub cargo: PathBuf,
pub rustc: PathBuf,
pub buildifier: Option<PathBuf>,
pub config: PathBuf,
pub splicing_manifest: PathBuf,
pub cargo_lockfile: Option<PathBuf>,
pub cargo_config: Option<PathBuf>,
pub repin: Option<CargoUpdateRequest>,
pub metadata: Option<PathBuf>,
pub bazel: PathBuf,
pub workspace_dir: PathBuf,
pub dry_run: bool,
}Expand description
Command line options for the vendor subcommand
Fields§
§cargo: PathBufThe path to a Cargo binary to use for gathering metadata
rustc: PathBufThe path to a rustc binary for use with Cargo
buildifier: Option<PathBuf>The path to a buildifier binary for formatting generated BUILD files
config: PathBufThe config file with information about the Bazel and Cargo workspace
splicing_manifest: PathBufA generated manifest of splicing inputs
cargo_lockfile: Option<PathBuf>The path to a Cargo.lock file.
cargo_config: Option<PathBuf>A Cargo config file to use when gathering metadata
repin: Option<CargoUpdateRequest>The desired update/repin behavior. The arguments passed here are forward to cargo update. See [crate::metadata::CargoUpdateRequest] for details on the values to pass here.
metadata: Option<PathBuf>The path to a Cargo metadata json file.
bazel: PathBufThe path to a bazel binary
workspace_dir: PathBufThe directory in which to build the workspace. A Cargo.toml file
should always be produced within this directory.
dry_run: boolIf true, outputs will be printed instead of written to disk.
Trait Implementations§
source§impl Args for VendorOptions
impl Args for VendorOptions
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl CommandFactory for VendorOptions
impl CommandFactory for VendorOptions
source§impl Debug for VendorOptions
impl Debug for VendorOptions
source§impl FromArgMatches for VendorOptions
impl FromArgMatches for VendorOptions
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§impl Parser for VendorOptions
impl Parser for VendorOptions
§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
std::env::args_os(), return Err on error.