#[non_exhaustive]pub struct GuestOptions {
pub features: Vec<String>,
pub use_docker: Option<DockerOptions>,
pub kernel: Option<Vec<u8>>,
}
Expand description
Options defining how to embed a guest package in
crate::embed_methods_with_options
.
use risc0_build::{DockerOptionsBuilder, GuestOptionsBuilder};
let docker_options = DockerOptionsBuilder::default()
.root_dir("../../")
.env(vec![("ENV_VAR".to_string(), "value".to_string())])
.build()
.unwrap();
let guest_options = GuestOptionsBuilder::default()
.features(vec!["my-features".to_string()])
.use_docker(docker_options)
.build()
.unwrap();
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.features: Vec<String>
Features for cargo to build the guest with.
use_docker: Option<DockerOptions>
Use a docker environment for building.
kernel: Option<Vec<u8>>
Override the default kernel ELF to be used for execution.
Implementations§
Trait Implementations§
Source§impl Clone for GuestOptions
impl Clone for GuestOptions
Source§fn clone(&self) -> GuestOptions
fn clone(&self) -> GuestOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GuestOptions
impl Debug for GuestOptions
Source§impl Default for GuestOptions
impl Default for GuestOptions
Source§fn default() -> GuestOptions
fn default() -> GuestOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GuestOptions
impl RefUnwindSafe for GuestOptions
impl Send for GuestOptions
impl Sync for GuestOptions
impl Unpin for GuestOptions
impl UnwindSafe for GuestOptions
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