Skip to main content

builder

Function builder 

Source
pub fn builder() -> ImageRunnerBuilder
Expand description

Create a new image runner builder.

This is the main entry point for the fluent API.

ยงExample

use cargo_image_runner::{builder, Config};

let config = Config::from_toml_str(r#"
    [boot]
    type = "uefi"
    [bootloader]
    kind = "none"
    [image]
    format = "directory"
"#)?;

builder()
    .with_config(config)
    .workspace_root(".")
    .executable("target/x86_64-unknown-none/debug/my-kernel")
    .run()