pub struct SdkPackageSpec {
pub manifest: SdkManifest,
pub header_paths: Vec<String>,
pub lib_paths: Vec<String>,
pub tool_paths: Vec<String>,
pub doc_paths: Vec<String>,
}Expand description
Full specification for building an SDK package, combining the manifest with the paths to include.
Fields§
§manifest: SdkManifestThe SDK manifest describing version, targets, and components.
header_paths: Vec<String>Paths to header files to include.
lib_paths: Vec<String>Paths to library files to include.
tool_paths: Vec<String>Paths to tool binaries to include.
doc_paths: Vec<String>Paths to documentation files to include.
Implementations§
Source§impl SdkPackageSpec
impl SdkPackageSpec
Sourcepub fn new(manifest: SdkManifest) -> Self
pub fn new(manifest: SdkManifest) -> Self
Create a new package spec from a manifest with empty path lists.
Sourcepub fn add_header_path(&mut self, path: &str)
pub fn add_header_path(&mut self, path: &str)
Add a header file path.
Sourcepub fn add_lib_path(&mut self, path: &str)
pub fn add_lib_path(&mut self, path: &str)
Add a library file path.
Sourcepub fn add_tool_path(&mut self, path: &str)
pub fn add_tool_path(&mut self, path: &str)
Add a tool binary path.
Sourcepub fn add_doc_path(&mut self, path: &str)
pub fn add_doc_path(&mut self, path: &str)
Add a documentation file path.
Trait Implementations§
Source§impl Clone for SdkPackageSpec
impl Clone for SdkPackageSpec
Source§fn clone(&self) -> SdkPackageSpec
fn clone(&self) -> SdkPackageSpec
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SdkPackageSpec
impl RefUnwindSafe for SdkPackageSpec
impl Send for SdkPackageSpec
impl Sync for SdkPackageSpec
impl Unpin for SdkPackageSpec
impl UnwindSafe for SdkPackageSpec
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)