Struct ethers_solc::ProjectBuilder
source · pub struct ProjectBuilder<T: ArtifactOutput = ConfigurableArtifacts> {
pub ignored_error_codes: Vec<u64>,
/* private fields */
}
Fields§
§ignored_error_codes: Vec<u64>
Which error codes to ignore
Implementations§
source§impl<T: ArtifactOutput> ProjectBuilder<T>
impl<T: ArtifactOutput> ProjectBuilder<T>
pub fn paths(self, paths: ProjectPathsConfig) -> Self
pub fn solc(self, solc: impl Into<Solc>) -> Self
pub fn solc_config(self, solc_config: SolcConfig) -> Self
pub fn ignore_error_code(self, code: u64) -> Self
pub fn ignore_error_codes(self, codes: impl IntoIterator<Item = u64>) -> Self
pub fn set_compiler_severity_filter(
self,
compiler_severity_filter: Severity
) -> Self
sourcepub fn set_cached(self, cached: bool) -> Self
pub fn set_cached(self, cached: bool) -> Self
Sets the cache status
sourcepub fn set_build_info(self, build_info: bool) -> Self
pub fn set_build_info(self, build_info: bool) -> Self
Sets the build info value
sourcepub fn offline(self) -> Self
pub fn offline(self) -> Self
Activates offline mode
Prevents network possible access to download/check solc installs
sourcepub fn set_offline(self, offline: bool) -> Self
pub fn set_offline(self, offline: bool) -> Self
Sets the offline status
sourcepub fn set_slashed_paths(self, slashed_paths: bool) -> Self
pub fn set_slashed_paths(self, slashed_paths: bool) -> Self
Sets whether to slash all paths on windows
If set to true
all \\
separators are replaced with /
, same as solc
sourcepub fn no_artifacts(self) -> Self
pub fn no_artifacts(self) -> Self
Disables writing artifacts to disk
sourcepub fn set_no_artifacts(self, artifacts: bool) -> Self
pub fn set_no_artifacts(self, artifacts: bool) -> Self
Sets the no artifacts status
sourcepub fn set_auto_detect(self, auto_detect: bool) -> Self
pub fn set_auto_detect(self, auto_detect: bool) -> Self
Sets automatic solc version detection
sourcepub fn no_auto_detect(self) -> Self
pub fn no_auto_detect(self) -> Self
Disables automatic solc version detection
sourcepub fn solc_jobs(self, jobs: usize) -> Self
pub fn solc_jobs(self, jobs: usize) -> Self
Sets the maximum number of parallel solc
processes to run simultaneously.
Panics
jobs
must be at least 1
sourcepub fn single_solc_jobs(self) -> Self
pub fn single_solc_jobs(self) -> Self
Sets the number of parallel solc
processes to 1
, no parallelization
sourcepub fn artifacts<A: ArtifactOutput>(self, artifacts: A) -> ProjectBuilder<A>
pub fn artifacts<A: ArtifactOutput>(self, artifacts: A) -> ProjectBuilder<A>
Set arbitrary ArtifactOutputHandler
sourcepub fn allowed_path<P: Into<PathBuf>>(self, path: P) -> Self
pub fn allowed_path<P: Into<PathBuf>>(self, path: P) -> Self
Adds an allowed-path to the solc executable
sourcepub fn allowed_paths<I, S>(self, args: I) -> Selfwhere
I: IntoIterator<Item = S>,
S: Into<PathBuf>,
pub fn allowed_paths<I, S>(self, args: I) -> Selfwhere
I: IntoIterator<Item = S>,
S: Into<PathBuf>,
Adds multiple allowed-path to the solc executable
sourcepub fn include_path<P: Into<PathBuf>>(self, path: P) -> Self
pub fn include_path<P: Into<PathBuf>>(self, path: P) -> Self
Adds an --include-path
to the solc executable
sourcepub fn include_paths<I, S>(self, args: I) -> Selfwhere
I: IntoIterator<Item = S>,
S: Into<PathBuf>,
pub fn include_paths<I, S>(self, args: I) -> Selfwhere
I: IntoIterator<Item = S>,
S: Into<PathBuf>,
Adds multiple include-path to the solc executable