pub struct Ndk { /* private fields */ }
Implementations
sourceimpl Ndk
impl Ndk
pub fn from_env() -> Result<Self, NdkError>
pub fn sdk(&self) -> &Path
pub fn ndk(&self) -> &Path
pub fn build_tools_version(&self) -> &str
pub fn build_tag(&self) -> u32
pub fn platforms(&self) -> &[u32]
pub fn build_tool(&self, tool: &str) -> Result<Command, NdkError>
pub fn platform_tool(&self, tool: &str) -> Result<Command, NdkError>
pub fn highest_supported_platform(&self) -> u32
sourcepub fn default_target_platform(&self) -> u32
pub fn default_target_platform(&self) -> u32
Returns platform 30
as currently required by Google Play, or lower
when the detected SDK does not support it yet.
pub fn platform_dir(&self, platform: u32) -> Result<PathBuf, NdkError>
pub fn android_jar(&self, platform: u32) -> Result<PathBuf, NdkError>
pub fn toolchain_dir(&self) -> Result<PathBuf, NdkError>
pub fn clang(
&self,
target: Target,
platform: u32
) -> Result<(PathBuf, PathBuf), NdkError>
pub fn toolchain_bin(
&self,
name: &str,
target: Target
) -> Result<PathBuf, NdkError>
pub fn android_dir(&self) -> Result<PathBuf, NdkError>
pub fn keytool(&self) -> Result<Command, NdkError>
pub fn debug_key(&self) -> Result<Key, NdkError>
pub fn sysroot_lib_dir(&self, target: Target) -> Result<PathBuf, NdkError>
pub fn sysroot_platform_lib_dir(
&self,
target: Target,
min_sdk_version: u32
) -> Result<PathBuf, NdkError>
pub fn detect_abi(&self) -> Result<Target, NdkError>
Trait Implementations
impl Eq for Ndk
impl StructuralEq for Ndk
impl StructuralPartialEq for Ndk
Auto Trait Implementations
impl RefUnwindSafe for Ndk
impl Send for Ndk
impl Sync for Ndk
impl Unpin for Ndk
impl UnwindSafe for Ndk
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more