2025-11-03 02:04:21 -05:00
|
|
|
use alloc::string::String;
|
2025-11-02 23:28:31 -05:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
|
|
/// Declares a driver configuration.
|
|
|
|
|
/// Drivers allow extending the functionality of Sprout.
|
|
|
|
|
/// Drivers are loaded at runtime and can provide extra functionality like filesystem support.
|
|
|
|
|
/// Drivers are loaded by their name, which is used to reference them in other concepts.
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
|
|
|
|
|
pub struct DriverDeclaration {
|
|
|
|
|
/// The filesystem path to the driver.
|
|
|
|
|
/// This file should be an EFI executable that can be located and executed.
|
|
|
|
|
pub path: String,
|
|
|
|
|
}
|