Update Rust crate tempfile to 3.8 - autoclosed #206
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.3
->3.8
Release Notes
Stebalien/tempfile (tempfile)
v3.8.1
persist_noclobber
on android.v3.8.0
Compare Source
with_prefix
andwith_prefix_in
toTempDir
andNamedTempFile
to make it easier to create temporary files/directories with nice prefixes.v3.7.1
Compare Source
v3.7.0
Compare Source
BREAKING: This release updates the MSRV to 1.63. This isn't an API-breaking change (so no major
release) but it's still a breaking change for some users.
v3.6.0
Compare Source
NamedTempFile
andSpooledTempFile
methods to the underlyingFile
object forbetter performance (especially vectorized writes, etc.).
AsFd
andAsHandle
.v3.5.0
Compare Source
windows-sys
,redox_syscall
Write for &NamedTempFile<F> where &F: Write
. Unfortunately, this can cause compile issues in unrelated code (https://github.com/Stebalien/tempfile/issues/224).v3.4.0
Compare Source
SECURITY: Prior
tempfile
releases depended onremove_dir_all
version 0.5.0 which was vulnerable to a TOCTOU race. This same race is present in rust versions prior to 1.58.1.Features:
NamedTempFile
can now abstract over different kinds of files (e.g.,unix domain sockets, pipes, etc.):
Builder::make
andBuilder::make_in
for generalized temp filecreation.
NamedTempFile::from_parts
to complementNamedTempFile::into_parts
.NamedTempFile
to support wrapping non-File types.Bug Fixes/Improvements:
the user (no random characters).
NamedTempFile::persist_noclobber
is now always atomic on linux whenrenameat_with
issupported. Previously, it would first link the new path, then unlink the previous path.
Trivia:
libc
torustix
on wasi/unix. This now makes direct syscalls instead of callingthrough libc.
remove_dir_all
dependency. The rust standard library has optimized their internal versionsignificantly.
Breaking:
1.48.0
.must_use
.NamedTempFile
may lead to type inference issues in some cases.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.