extern crate c_rs; use c_rs::c; use c_rs::ctypes::*; use c_rs::str_to_char_ptr; c!{ #include } extern "C" { fn puts(_arg: *const _char) -> _void; //getting puts function from C's stdio } fn main() { unsafe{ //all functions from c macro are unsafe puts(str_as_char_ptr!("Hello, World!")); // C's "char" type is an eight-bit integer, so "*const i8" in Rust == "char*" in C } }