c-main

Rust Crates.io Documentation

Utility crate providing c-main style arguments by using C main function.

Usage

```rust

![no_main]

[no_mangle]

pub fn rustmain(args: cmain::Args) -> isize { for arg in args.into_iter().skip(1) { println!("arg={:?}", arg); } 0 } ```