[−][src]Struct pyoxidizerlib::pyrepackager::state::BuildContext
Represents environment for a build.
Fields
project_path: PathBuf
Path to Rust project.
config_path: PathBuf
Path to PyOxidizer configuration file.
config_parent_path: PathBuf
Path to directory containing PyOxidizer configuration file.
config: Config
Parsed PyOxidizer configuration file.
cargo_config: Manifest
Parsed Cargo.toml for Rust project.
verbose: bool
Whether to operate in verbose mode.
build_path: PathBuf
Path to main build directory where all state is stored.
app_name: String
Name of application/binary being built.
app_path: PathBuf
Path containing build/packaged application and all supporting files.
app_exe_path: PathBuf
Path to application executable in its installed/packaged directory.
distributions_path: PathBuf
Path where distribution files should be written.
host_triple: String
Rust target triple for build host.
target_triple: String
Rust target triple for build target.
release: bool
Whether compiling a release build.
target_base_path: PathBuf
Main output path for Rust build artifacts.
Should be passed as --target to cargo build.
target_triple_base_path: PathBuf
Rust build artifact output path for this target.
python_distribution_path: PathBuf
Path to extracted Python distribution.
app_target_path: PathBuf
Rust build artifact output path for the application crate.
app_exe_target_path: PathBuf
Application executable in its Rust target directory.
pyoxidizer_artifacts_path: PathBuf
Path where PyOxidizer should write its build artifacts.
packaging_state: Option<PackagingState>
State used for packaging.
Implementations
impl BuildContext
[src]
pub fn new(
project_path: &Path,
config_path: &Path,
host: Option<&str>,
target: &str,
release: bool,
force_artifacts_path: Option<&Path>,
verbose: bool
) -> Result<Self, String>
[src]
project_path: &Path,
config_path: &Path,
host: Option<&str>,
target: &str,
release: bool,
force_artifacts_path: Option<&Path>,
verbose: bool
) -> Result<Self, String>
pub fn get_packaging_state(&mut self) -> Result<PackagingState, String>
[src]
Obtain the PackagingState instance for this configuration.
This basically reads the packaging_state.cbor file from the artifacts directory.
Auto Trait Implementations
impl RefUnwindSafe for BuildContext
impl Send for BuildContext
impl Sync for BuildContext
impl Unpin for BuildContext
impl UnwindSafe for BuildContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,