fix: Embed default config to resolve build failure

Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
This commit is contained in:
Chaos Rogers 2025-07-21 16:58:56 +01:00
parent 6eda9149ca
commit 32b307b935

View file

@ -20,8 +20,10 @@ use std::{
};
use tokio::task::{self, LocalSet};
/// Embed the default config.json at compile time.
const DEFAULT_CONFIG: &str = include_str!("../config.json");
/// Default config content, embedded in the binary.
const DEFAULT_CONFIG: &str = r#"{
"hardware_offset_ms": 20
}"#;
/// If no `config.json` exists alongside the binary, write out the default.
fn ensure_config() {