MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / main

Function main

hail-fuzz/src/main.rs:51–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49};
50
51fn main() {
52 let logger = tracing_subscriber::fmt().with_env_filter(
53 tracing_subscriber::EnvFilter::from_env("ICICLE_LOG")
54 .add_directive("cranelift_jit=warn".parse().unwrap())
55 .add_directive("cranelift_codegen=warn".parse().unwrap()),
56 );
57
58 match std::env::var("ICICLE_LOG_ADDR").ok() {
59 Some(addr) => {
60 let addr = Arc::new(addr);
61 logger
62 .with_writer(move || std::io::BufWriter::new(UdpWriter::new(addr.as_ref())))
63 .init()
64 }
65 None => logger.with_writer(std::io::stderr).init(),
66 }
67
68 if let Err(e) = run() {
69 eprintln!("Error running fuzzer: {e:?}");
70 std::process::exit(1);
71 }
72}
73
74fn run() -> anyhow::Result<()> {
75 if let Some(path) = std::env::var_os("GENCONFIG") {

Callers

nothing calls this directly

Calls 2

runFunction · 0.70
initMethod · 0.45

Tested by

no test coverage detected