pub struct AndroidToolchain {
pub sdk_root: Utf8PathBuf,
pub platform: AndroidPlatform,
pub build_tools: AndroidBuildTools,
pub ndk: AndroidNdk,
pub cargo: Utf8PathBuf,
pub rustc: Option<Utf8PathBuf>,
pub rustup: Option<Utf8PathBuf>,
pub java: Option<Utf8PathBuf>,
pub javac: Option<Utf8PathBuf>,
pub keytool: Utf8PathBuf,
}Expand description
Selected tools used by one direct Android build.
Fields§
§sdk_root: Utf8PathBufAndroid SDK root.
platform: AndroidPlatformSelected platform.
build_tools: AndroidBuildToolsSelected complete Build Tools.
ndk: AndroidNdkSelected NDK.
cargo: Utf8PathBufCargo executable.
rustc: Option<Utf8PathBuf>Optional Rust compiler for doctor reporting.
rustup: Option<Utf8PathBuf>Optional rustup executable for target checks.
java: Option<Utf8PathBuf>Optional Java runtime.
javac: Option<Utf8PathBuf>Optional Java compiler.
keytool: Utf8PathBufKey store utility.
Implementations§
Source§impl AndroidToolchain
impl AndroidToolchain
Sourcepub fn linker_for(
&self,
abi: AndroidAbi,
min_sdk: u32,
) -> Result<Utf8PathBuf, AndroidError>
pub fn linker_for( &self, abi: AndroidAbi, min_sdk: u32, ) -> Result<Utf8PathBuf, AndroidError>
Resolve the NDK Clang driver for one ABI and minimum API level.
§Errors
Returns an error when the selected NDK has no host prebuilt or matching Clang driver.
Sourcepub fn llvm_ar(&self) -> Result<Utf8PathBuf, AndroidError>
pub fn llvm_ar(&self) -> Result<Utf8PathBuf, AndroidError>
Resolve the NDK LLVM archiver.
§Errors
Returns an error when the selected NDK lacks its host prebuilt or llvm-ar.
Trait Implementations§
Source§impl Clone for AndroidToolchain
impl Clone for AndroidToolchain
Source§impl Debug for AndroidToolchain
impl Debug for AndroidToolchain
Source§impl<'de> Deserialize<'de> for AndroidToolchain
impl<'de> Deserialize<'de> for AndroidToolchain
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
impl Eq for AndroidToolchain
Source§impl PartialEq for AndroidToolchain
impl PartialEq for AndroidToolchain
Source§impl Serialize for AndroidToolchain
impl Serialize for AndroidToolchain
impl StructuralPartialEq for AndroidToolchain
Auto Trait Implementations§
impl Freeze for AndroidToolchain
impl RefUnwindSafe for AndroidToolchain
impl Send for AndroidToolchain
impl Sync for AndroidToolchain
impl Unpin for AndroidToolchain
impl UnsafeUnpin for AndroidToolchain
impl UnwindSafe for AndroidToolchain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.