rootcause-backtrace 0.12.0

Backtraces support for the rootcause error reporting library
Documentation
1
2
3
4
5
6
7
8
9
10
use std::env;
use std::fs;
use std::path::{self, PathBuf};

fn main() {
    let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());
    let host_path_separator_file = out_dir.join("host_path_separator");
    let literal = format!("'{}'", path::MAIN_SEPARATOR.escape_default());
    fs::write(host_path_separator_file, literal).unwrap();
}