1
0
Fork 0
forked from wry/wry

backends: add headless backend

This commit is contained in:
Julian Orth 2026-03-19 22:23:13 +01:00
parent 37a0bd451b
commit 8b22255f6e
4 changed files with 317 additions and 1 deletions

View file

@ -7,7 +7,7 @@ use {
backend::{Backend, Connector},
backends::{
dummy::{DummyBackend, DummyOutput},
metal, x,
headless, metal, x,
},
cli::{CliBackend, GlobalArgs, RunArgs},
client::{ClientId, Clients},
@ -644,6 +644,15 @@ async fn create_backend(
}
}
}
CliBackend::Headless => {
log::info!("Trying to create headless backend");
match headless::create(state).await {
Ok(b) => return Some(b),
Err(e) => {
log::error!("Could not create headless backend: {}", ErrorFmt(e));
}
}
}
}
}
None