mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 14:20:18 +00:00
14 lines
578 B
Rust
14 lines
578 B
Rust
use alloc::string::String;
|
|
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,
|
|
}
|