pub struct SdkConfig {
pub default_cflags: Vec<String>,
pub default_ldflags: Vec<String>,
pub sysroot: String,
pub include_paths: Vec<String>,
pub lib_paths: Vec<String>,
}Expand description
SDK configuration controlling compiler and linker flags.
Fields§
§default_cflags: Vec<String>Default C compiler flags.
default_ldflags: Vec<String>Default linker flags.
sysroot: StringSysroot directory.
include_paths: Vec<String>Include search paths.
lib_paths: Vec<String>Library search paths.
Implementations§
Source§impl SdkConfig
impl SdkConfig
Sourcepub fn for_target(target: BuildTarget) -> Self
pub fn for_target(target: BuildTarget) -> Self
Create an SDK configuration for a specific build target.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SdkConfig
impl RefUnwindSafe for SdkConfig
impl Send for SdkConfig
impl Sync for SdkConfig
impl Unpin for SdkConfig
impl UnwindSafe for SdkConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)