mirror of
https://github.com/kristoferssolo/tls-pq-bench.git
synced 2026-03-22 00:36:21 +00:00
feat(runner): add structured logging with tracing
- Add tracing, tracing-subscriber, uuid dependencies - Replace eprintln! with info! for structured logs - Add run_id, rust_version, os, arch to benchmark start log
This commit is contained in:
16
runner/build.rs
Normal file
16
runner/build.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
use std::{env, process::Command};
|
||||
|
||||
fn main() {
|
||||
let rustc_version = env::var("RUSTC_VERSION").unwrap_or_else(|_| {
|
||||
Command::new("rustc")
|
||||
.arg("--version")
|
||||
.output()
|
||||
.ok()
|
||||
.and_then(|output| String::from_utf8(output.stdout).ok())
|
||||
.unwrap_or_else(|| "unknown".to_string())
|
||||
.trim()
|
||||
.to_string()
|
||||
});
|
||||
|
||||
println!("cargo:rustc-env=RUSTC_VERSION={rustc_version}");
|
||||
}
|
||||
Reference in New Issue
Block a user