pub struct BuildContext {
pub workspace_manifest_path: PathBuf,
pub package_manifest_path: PathBuf,
pub project_path: PathBuf,
pub cargo_package: CargoPackage<Metadata>,
pub target_dir: PathBuf,
}Fields
workspace_manifest_path: PathBufpackage_manifest_path: PathBufproject_path: PathBufcargo_package: CargoPackage<Metadata>target_dir: PathBufImplementations
sourceimpl BuildContext
impl BuildContext
pub fn new(config: &Config, target_dir: Option<PathBuf>) -> Result<Self>
pub fn package_name(&self) -> String
pub fn package_version(&self) -> String
pub fn target_sdk_version(&self, sdk: &AndroidSdk) -> u32
pub fn android_build_targets(
&self,
build_targets: &Vec<AndroidTarget>
) -> Vec<AndroidTarget>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn android_res(&self) -> Option<PathBuf>
pub fn android_assets(&self) -> Option<PathBuf>
pub fn gen_android_manifest(
&self,
sdk: &AndroidSdk,
package_name: &String,
debuggable: bool
) -> Result<AndroidManifest>
pub fn gen_info_plist(&self, package_name: &String) -> Result<InfoPlist>
pub fn apple_build_targets(
&self,
build_targets: &Vec<AppleTarget>
) -> Vec<AppleTarget>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn apple_res(&self) -> Option<PathBuf>
pub fn apple_assets(&self) -> Option<PathBuf>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more