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 KernelBuild
pub fn files<P>(&mut self, p: P) -> &mut KernelBuild
Add files which will be compiled
sourcepub fn file_opt<P: AsRef<Path>>(&mut self, p: P, opt: usize) -> &mut KernelBuild
pub fn file_opt<P: AsRef<Path>>(&mut self, p: P, opt: usize) -> &mut KernelBuild
Add a file which will be compiled
sourcepub fn files_opt<P>(&mut self, p: P, opt: usize) -> &mut KernelBuild
pub fn files_opt<P>(&mut self, p: P, opt: usize) -> &mut KernelBuild
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 KernelBuild
pub fn deps<P>(&mut self, p: P) -> &mut KernelBuild
Add dependencies
pub fn compile(&mut self, output: &str)
Auto Trait Implementations§
impl Freeze for KernelBuild
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more