-
Notifications
You must be signed in to change notification settings - Fork 2
Update Rust crate tempfile to 3.23.0 #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/tempfile-3.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e9928e0 to
7c1589d
Compare
7c1589d to
887950d
Compare
887950d to
95cf68d
Compare
95cf68d to
5da5ccd
Compare
5da5ccd to
c4d0b3e
Compare
c4d0b3e to
5c03f46
Compare
5c03f46 to
07b19e0
Compare
07b19e0 to
0b83e42
Compare
0b83e42 to
8dbdfe4
Compare
8dbdfe4 to
a4fb961
Compare
a4fb961 to
f1356a4
Compare
f1356a4 to
3c2d258
Compare
3c2d258 to
66c2af9
Compare
66c2af9 to
76bca7e
Compare
76bca7e to
5633988
Compare
5633988 to
80e9db5
Compare
80e9db5 to
8b27269
Compare
8b27269 to
691276d
Compare
691276d to
3579c89
Compare
3579c89 to
39679bd
Compare
39679bd to
09d1dfb
Compare
09d1dfb to
88db492
Compare
88db492 to
2eb1b8e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Test plan: CI should pass with updated dependencies. No review required: this is an automated dependency update PR.
Release Notes
Stebalien/tempfile (tempfile)
v3.23.0Compare Source
v3.22.0Compare Source
windows-sysrequirement to allow version 0.61.xunstable-windows-keep-open-tempfilefeature.v3.21.0Compare Source
windows-sysrequirement to allow version 0.60.xv3.20.0Compare Source
This release mostly unifies the behavior/capabilities around "keeping" temporary files:
Builder::keep(bool)(via deprecation) toBuilder::disable_cleanup(bool)to make it clear that behaves differently fromNamedTempFile::keep(). The former disables automatic cleanup while the latter consumes theNamedTempFileobject entirely and unsets the "temporary file" attribute (on Windows).TempDir::into_path(via deprecation) toTempDir::keepto mirrorNamedTempFile::keep.TempDir::disable_cleanup,NamedTempFile::disable_cleanup, andTempPath::disable_cleanupmaking it possible to disable automatic cleanup in-place after creating a temporary file/directory (equivalent to callingBuilder::disable_cleanupbefore creating the file/directory).Additionally, it adds a few spooled temporary file features:
SpooledTempFile::into_filefor turning aSpooledTempFileinto a regular unnamed temporary file, writing it to the backing storage ("rolling" it) if it was still stored in-memory.spooled_tempfile_inandSpooledTempFile::new_inmethods for creating spooled temporary files in a specific directory. This makes it possible to choose the backing device for your spooled temporary file which is rather important on Linux where the default temporary directory is likely backed by memory (defeating the entire point of having a spooled temporary file).Finally, this release improves documentation, especially the top-level documentation explaining which temporary file type to use.
BREAKING for those with
deny(warnings):Builder::keepdeprecated in favor ofBuilder::disable_cleanup.TempDir::into_pathis deprecated in favor ofTempDir::keep.v3.19.1Compare Source
v3.19.0Compare Source
cfg-if. It's still in the tree, but we didn't really need to use it in this crate.unstable-windows-keep-open-tempfile) to test a potential fix to #339.v3.18.0Compare Source
rustixto 1.0.0.NamedTempFile::persist_noclobberatomic on Apple operating systems. It's now atomic on MacOS, Windows, and Linux (depending on the OS version and filesystem used).v3.17.1Compare Source
windows-sys0.52. Unfortunately, we have no CI for olderwindows-sysversions at the moment...v3.17.0Compare Source
Builder::make_in(when creating temporary files of arbitrary types).getrandom, use platform (e.g., CPU) specific randomness sources where possible.v3.16.0Compare Source
getrandomto0.3.0(thanks to @paolobarbolini).windows-sysversions0.59.xin addition to0.59.0(thanks @ErichDonGubler).v3.15.0Compare Source
Re-seed the per-thread RNG from system randomness when we repeatedly fail to create temporary files (#314). This resolves a potential DoS vector (#178) while avoiding
getrandomin the common case where it's necessary. The feature is optional but enabled by default via thegetrandomfeature.For libc-free builds, you'll either need to disable this feature or opt-in to a different
getrandombackend.v3.14.0Compare Source
v3.13.0Compare Source
with_suffixconstructors for easily creating new temporary files with a specific suffix (e.g., a specific file extension). Thanks to @Borgerr.v3.12.0Compare Source
keep(keep: bool)function to builder that suppresses delete-on-drop behavior (thanks to @RalfJung).windows-sysfrom 0.52 to 0.59.v3.11.0Compare Source
v3.10.1Compare Source
Thanks to @stoeckmann for finding and fixing both of these issues.
v3.10.0Compare Source
redox_syscalldependency, we now userustixfor Redox.Builder::permissionsfor setting the permissions on temporary files and directories (thanks to @Byron).v3.9.0Compare Source
v3.8.1Compare Source
persist_noclobberon android.v3.8.0Compare Source
with_prefixandwith_prefix_intoTempDirandNamedTempFileto make it easier to create temporary files/directories with nice prefixes.v3.7.1Compare Source
v3.7.0Compare 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.0Compare Source
NamedTempFileandSpooledTempFilemethods to the underlyingFileobject forbetter performance (especially vectorized writes, etc.).
AsFdandAsHandle.v3.5.0Compare Source
windows-sys,redox_syscallWrite for &NamedTempFile<F> where &F: Write. Unfortunately, this can cause compile issues in unrelated code (#224).v3.4.0Compare Source
SECURITY: Prior
tempfilereleases depended onremove_dir_allversion 0.5.0 which was vulnerable to a TOCTOU race. This same race is present in rust versions prior to 1.58.1.Features:
NamedTempFilecan now abstract over different kinds of files (e.g.,unix domain sockets, pipes, etc.):
Builder::makeandBuilder::make_infor generalized temp filecreation.
NamedTempFile::from_partsto complementNamedTempFile::into_parts.NamedTempFileto support wrapping non-File types.Bug Fixes/Improvements:
the user (no random characters).
NamedTempFile::persist_noclobberis now always atomic on linux whenrenameat_withissupported. Previously, it would first link the new path, then unlink the previous path.
Trivia:
libctorustixon wasi/unix. This now makes direct syscalls instead of callingthrough libc.
remove_dir_alldependency. The rust standard library has optimized their internal versionsignificantly.
Breaking:
1.48.0.must_use.NamedTempFilemay lead to type inference issues in some cases.Configuration
📅 Schedule: Branch creation - "on the 1st through 7th day of the month" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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 was generated by Mend Renovate. View the repository job log.