2025-11-02 23:28:31 -05:00
|
|
|
use crate::entries::EntryDeclaration;
|
2025-11-03 02:04:21 -05:00
|
|
|
use alloc::string::{String, ToString};
|
2025-11-02 23:28:31 -05:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
|
|
/// The default path to the BLS directory.
|
|
|
|
|
const BLS_TEMPLATE_PATH: &str = "\\loader";
|
|
|
|
|
|
|
|
|
|
/// The configuration of the BLS generator.
|
|
|
|
|
/// The BLS uses the Bootloader Specification to produce
|
|
|
|
|
/// entries from an input template.
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
|
|
|
|
|
pub struct BlsConfiguration {
|
|
|
|
|
/// The entry to use for as a template.
|
|
|
|
|
pub entry: EntryDeclaration,
|
|
|
|
|
/// The path to the BLS directory.
|
|
|
|
|
#[serde(default = "default_bls_path")]
|
|
|
|
|
pub path: String,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn default_bls_path() -> String {
|
|
|
|
|
BLS_TEMPLATE_PATH.to_string()
|
|
|
|
|
}
|