c-main 1.0.1

C main style entry point
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented1 out of 3 items with examples
  • Size
  • Source code size: 7.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 988.08 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • DoumanAsh/c-main
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • DoumanAsh

c-main

Rust Crates.io Documentation

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

Usage

#![no_main]

#[no_mangle]
pub fn rust_main(args: c_main::Args) -> isize {
    for arg in args.into_iter().skip(1) {
        println!("arg={:?}", arg);
    }
    0
}