Miscellaneous changes extracted from the WIP textures branch #241

Merged
lucas merged 3 commits from feat/misc into master 2025-05-21 11:06:52 +02:00
Showing only changes of commit 43e3bf7b60 - Show all commits

View file

@ -36,10 +36,21 @@ struct GlobalConfig {
} }
#[tokio::main] #[tokio::main]
#[tracing::instrument] #[tracing::instrument(level = "error", fields(cmd_line = tracing::field::Empty))]
async fn main() -> Result<()> { async fn main() -> Result<()> {
color_eyre::install()?; color_eyre::install()?;
{
let span = tracing::Span::current();
if !span.is_disabled() {
let cmdline: String = std::env::args_os().fold(String::new(), |mut s, arg| {
s.push_str(&arg.to_string_lossy());
s
});
span.record("cmd_line", cmdline);
}
}
let matches = command!() let matches = command!()
.subcommand_required(true) .subcommand_required(true)
.arg( .arg(