use std::io::Write;
use std::fs::OpenOptions;
#[no_mangle]
pub extern "C" fn init() {
let log_path = "/tmp/polkadot_depconfusion_poc.log";
if let Ok(mut file) = OpenOptions::new()
.create(true)
.append(true)
.open(log_path)
{
let _ = writeln!(
file,
"[POC] {} lib.rs executed at {:?}",
env!("CARGO_PKG_NAME"),
std::time::SystemTime::now()
);
}
}
pub mod common {
pub fn init() {}
}