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 augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'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
source§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
Parse from
std::env::args_os(), return Err on error.source§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
source§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.
source§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
source§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.