Struct cargo_bazel::cli::GenerateOptions
source · pub struct GenerateOptions {
pub cargo: Option<PathBuf>,
pub rustc: Option<PathBuf>,
pub config: PathBuf,
pub splicing_manifest: PathBuf,
pub lockfile: Option<PathBuf>,
pub cargo_lockfile: PathBuf,
pub repository_dir: PathBuf,
pub cargo_config: Option<PathBuf>,
pub repin: bool,
pub metadata: Option<PathBuf>,
pub dry_run: bool,
}Expand description
Command line options for the generate subcommand
Fields§
§cargo: Option<PathBuf>The path to a Cargo binary to use for gathering metadata
rustc: Option<PathBuf>The path to a rustc binary for use with Cargo
config: PathBufThe config file with information about the Bazel and Cargo workspace
splicing_manifest: PathBufA generated manifest of splicing inputs
lockfile: Option<PathBuf>The path to either a Cargo or Bazel lockfile
cargo_lockfile: PathBufThe path to a Cargo.lock file.
repository_dir: PathBufThe directory of the current repository rule
cargo_config: Option<PathBuf>A Cargo config file to use when gathering metadata
repin: boolWhether or not to ignore the provided lockfile and re-generate one
metadata: Option<PathBuf>The path to a Cargo metadata json file. This file must be next to a Cargo.toml and Cargo.lock file.
dry_run: boolIf true, outputs will be printed instead of written to disk.
Trait Implementations§
source§impl Args for GenerateOptions
impl Args for GenerateOptions
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
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 GenerateOptions
impl CommandFactory for GenerateOptions
source§impl Debug for GenerateOptions
impl Debug for GenerateOptions
source§impl FromArgMatches for GenerateOptions
impl FromArgMatches for GenerateOptions
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>
Assign values from
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>
Assign values from
ArgMatches to self.source§impl Parser for GenerateOptions
impl Parser for GenerateOptions
§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
Parse from
std::env::args_os(), return Err on error.§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations§
impl RefUnwindSafe for GenerateOptions
impl Send for GenerateOptions
impl Sync for GenerateOptions
impl Unpin for GenerateOptions
impl UnwindSafe for GenerateOptions
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