Struct risc0_build_kernel::KernelBuild
source · pub struct KernelBuild { /* private fields */ }
Implementations§
source§impl KernelBuild
impl KernelBuild
pub fn new(kernel_type: KernelType) -> Self
sourcepub fn include<P: AsRef<Path>>(&mut self, dir: P) -> &mut KernelBuild
pub fn include<P: AsRef<Path>>(&mut self, dir: P) -> &mut KernelBuild
Add a directory to the -I
or include path for headers
sourcepub fn flag(&mut self, flag: &str) -> &mut KernelBuild
pub fn flag(&mut self, flag: &str) -> &mut KernelBuild
Add an arbitrary flag to the invocation of the compiler
sourcepub fn file<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
pub fn file<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
Add a file which will be compiled
sourcepub fn files<P>(&mut self, p: P) -> &mut KernelBuildwhere
P: IntoIterator,
P::Item: AsRef<Path>,
pub fn files<P>(&mut self, p: P) -> &mut KernelBuildwhere P: IntoIterator, P::Item: AsRef<Path>,
Add files which will be compiled
sourcepub fn dep<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
pub fn dep<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
Add a dependency
sourcepub fn deps<P>(&mut self, p: P) -> &mut KernelBuildwhere
P: IntoIterator,
P::Item: AsRef<Path>,
pub fn deps<P>(&mut self, p: P) -> &mut KernelBuildwhere P: IntoIterator, P::Item: AsRef<Path>,
Add dependencies
pub fn compile(&mut self, output: &str)
Auto Trait Implementations§
impl RefUnwindSafe for KernelBuild
impl Send for KernelBuild
impl Sync for KernelBuild
impl Unpin for KernelBuild
impl UnwindSafe for KernelBuild
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