mktemp

Documentation

This module provides a simple way of creating temporary files and directories where their lifetime is defined by the scope they exist in.

Once the variable goes out of scope, the underlying file system resource is removed.

Example

``` use mktemp::Temp;

{ let tempfile = Temp::newfile(); let file = try!(fs::File::open(tempfile)); } // tempfile is cleaned from the fs here ```

License

MPL v2