mkstemp-rs

Crates.iomkstemp-rs
lib.rsmkstemp-rs
version1.0.0
sourcesrc
created_at2016-12-30 12:59:12.08277
updated_at2017-12-30 11:07:02.410862
descriptionSafe wrapper over mkstemp function from libc
homepage
repositoryhttps://github.com/dremon/mkstemp.rs
max_upload_size
id7857
size5,767
Dmitry Pankratov (ancwrd1)

documentation

https://dremon.github.io/mkstemp.rs/doc/mkstemp

README

mkstemp.rs

Safe wrapper over mkstemp function from libc

Documentation

Usage example:

use std::io::Write;
extern crate mkstemp;
pub fn main() {
    // delete automatically when it goes out of scope
    let mut temp_file = mkstemp::TempFile::new("/tmp/testXXXXXX", true).unwrap();
     temp_file.write("test content".as_bytes()).unwrap();
}

License

Licensed under MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

Commit count: 18

cargo fmt