pub struct Target<'a> {
pub abi: &'a str,
pub llvm_triple: &'a str,
pub ar: &'a str,
pub cc: &'a str,
pub cxx: &'a str,
pub linker: &'a str,
}Expand description
Represents a Android ABI target that is used to build for an Android device with a specific CPU and instruction set.
Fields§
§abi: &'a strThis is the name for the ABI that Android uses internally (e.g. in
jniLibs).
llvm_triple: &'a strThis is the name of the target that llvm/rustc uses.
ar: &'a strThis is the name of the archiver utility shipped with the NDK.
cc: &'a strThis is the name of the C compiler shipped with the NDK.
cxx: &'a strThis is the name of the C++ compiler shipped with the NDK.
linker: &'a strThis is the name of the linker shipped with the NDK.
Implementations§
Source§impl<'a> Target<'a>
impl<'a> Target<'a>
Sourcepub const fn armeabi_v7a() -> Target<'static>
pub const fn armeabi_v7a() -> Target<'static>
Returns a target configuration for the armeabi-v7a ABI.
Sourcepub const fn arm64_v8a() -> Target<'static>
pub const fn arm64_v8a() -> Target<'static>
Returns a target configuration for the arm64-v8a ABI (also known as
aarch64). This target has been available since API level 21 (the first
version of Android to support 64-bit architectures).
Auto Trait Implementations§
impl<'a> Freeze for Target<'a>
impl<'a> RefUnwindSafe for Target<'a>
impl<'a> Send for Target<'a>
impl<'a> Sync for Target<'a>
impl<'a> Unpin for Target<'a>
impl<'a> UnwindSafe for Target<'a>
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