Struct move_package::BuildConfig
source · pub struct BuildConfig {
pub dev_mode: bool,
pub test_mode: bool,
pub generate_docs: bool,
pub generate_abis: bool,
}
Fields§
§dev_mode: bool
Compile in ‘dev’ mode. The ‘dev-addresses’ and ‘dev-dependencies’ fields will be used if this flag is set. This flag is useful for development of packages that expose named addresses that are not set to a specific value.
test_mode: bool
Compile in ‘test’ mode. The ‘dev-addresses’ and ‘dev-dependencies’ fields will be used along with any code in the ‘test’ directory.
generate_docs: bool
Generate documentation for packages
generate_abis: bool
Generate ABIs for packages
Implementations§
source§impl BuildConfig
impl BuildConfig
pub fn compile_package<W: Write>( self, path: &Path, writer: &mut W ) -> Result<CompiledPackage>
pub fn move_model_for_package(self, path: &Path) -> Result<GlobalEnv>
pub fn resolution_graph_for_package(self, path: &Path) -> Result<ResolvedGraph>
Trait Implementations§
source§impl Clone for BuildConfig
impl Clone for BuildConfig
source§fn clone(&self) -> BuildConfig
fn clone(&self) -> BuildConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BuildConfig
impl Debug for BuildConfig
source§impl<'de> Deserialize<'de> for BuildConfig
impl<'de> Deserialize<'de> for BuildConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<BuildConfig> for BuildConfig
impl PartialEq<BuildConfig> for BuildConfig
source§fn eq(&self, other: &BuildConfig) -> bool
fn eq(&self, other: &BuildConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BuildConfig> for BuildConfig
impl PartialOrd<BuildConfig> for BuildConfig
source§fn partial_cmp(&self, other: &BuildConfig) -> Option<Ordering>
fn partial_cmp(&self, other: &BuildConfig) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for BuildConfig
impl Serialize for BuildConfig
source§impl StructOpt for BuildConfig
impl StructOpt for BuildConfig
source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from
clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by [StructOpt::clap
] called on
the same type, otherwise it must panic.§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program.§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Unlike [StructOpt::from_args
], returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you.§fn from_iter<I>(iter: I) -> Selfwhere
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString> + Clone,
fn from_iter<I>(iter: I) -> Selfwhere Self: Sized, I: IntoIterator, <I as IntoIterator>::Item: Into<OsString> + Clone,
Gets the struct from any iterator such as a
Vec
of your making.
Print the error message and quit the program in case of failure. Read more§fn from_iter_safe<I>(iter: I) -> Result<Self, Error>where
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString> + Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error>where Self: Sized, I: IntoIterator, <I as IntoIterator>::Item: Into<OsString> + Clone,
Gets the struct from any iterator such as a
Vec
of your making. Read moreimpl Eq for BuildConfig
impl StructuralEq for BuildConfig
impl StructuralPartialEq for BuildConfig
Auto Trait Implementations§
impl RefUnwindSafe for BuildConfig
impl Send for BuildConfig
impl Sync for BuildConfig
impl Unpin for BuildConfig
impl UnwindSafe for BuildConfig
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.