Skip to content

Commit

Permalink
release 3.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Feb 17, 2019
1 parent 1df323e commit 251a76a
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tempfile"
version = "3.0.6"
version = "3.0.7"
authors = [
"Steven Allen <[email protected]>",
"The Rust Project Developers",
Expand Down
72 changes: 72 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,75 @@
3.0.7
=====

Breaking:

* `Builder::prefix` and `Builder::suffix` now accept a generic `&AsRef<OsStr>`.
This could affect type inference.
* Temporary files (except unnamed temporary files on Windows and Linux >= 3.11)
now use absolute path names. This will break programs that create temporary
files relative to their current working directory when they don't have the
search permission (x) on some ancestor directory. This is only likely to
affect programs with strange chroot-less filesystem sandboxes. If you believe
you're affected by this issue, please comment on #40.

Features:

* Accept anything implementing `&AsRef<OsStr>` in the builder: &OsStr, &OsString, &Path, etc.

Fixes:

* Fix LFS support.
* Use absolute paths for named temporary files to guard against changes in the
current directory.
* Use absolute paths when creating unnamed temporary files on platforms that
can't create unlinked or auto-deleted temporary files. This fixes a very
unlikely race where the current directory could change while the temporary
file is being created.

Misc:

* Use modern stdlib features to avoid custom unsafe code. This reduces the
number of unsafe blocks from 12 to 4.

3.0.6
=====

* Don't hide temporary files on windows, fixing #66 and #69.

3.0.5
=====

Features:

* Added a spooled temporary file implementation. This temporary file variant
starts out as an in-memory temporary file but "rolls-over" onto disk when it
grows over a specified size (#68).
* Errors are now annotated with paths to make debugging easier (#73).

Misc:

* The rand version has been bumped to 0.6 (#74).

Bugs:

* Tempfile compiles again on Redox (#75).

3.0.4
=====

* Now compiles on unsupported platforms.

3.0.3
=====

* update rand to 0.5

3.0.2
=====

* Actually *delete* temporary files on non-Linux unix systems (thanks to
@oliverhenshaw for the fix and a test case).

3.0.1
=====

Expand Down

0 comments on commit 251a76a

Please sign in to comment.