c2rust-transpile 0.22.1

C2Rust transpiler implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(all(unix, not(target_os = "macos")))]
fn main() {
{{#each libraries}}    println!("cargo:rustc-link-lib={{{this}}}");
{{/each}}
    // add unix dependencies below
    // println!("cargo:rustc-flags=-l readline");
}

#[cfg(target_os = "macos")]
fn main() {
{{#each libraries}}    println!("cargo:rustc-link-lib={{{this}}}");
{{/each}}
    // add macos dependencies below
    // println!("cargo:rustc-flags=-l edit");
}