mkstemp-rs 1.0.0

Safe wrapper over mkstemp function from libc
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented1 out of 5 items with examples
  • Size
  • Source code size: 5.61 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.08 MB 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
  • Documentation
  • ancwrd1/mkstemp.rs
    0 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ancwrd1

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)