Update Rust crate tempfile to v3.20.0 #11154
Merged
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.19.1
->=3.20.0
Release Notes
Stebalien/tempfile (tempfile)
v3.20.0
Compare 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 theNamedTempFile
object entirely and unsets the "temporary file" attribute (on Windows).TempDir::into_path
(via deprecation) toTempDir::keep
to mirrorNamedTempFile::keep
.TempDir::disable_cleanup
,NamedTempFile::disable_cleanup
, andTempPath::disable_cleanup
making it possible to disable automatic cleanup in-place after creating a temporary file/directory (equivalent to callingBuilder::disable_cleanup
before creating the file/directory).Additionally, it adds a few spooled temporary file features:
SpooledTempFile::into_file
for turning aSpooledTempFile
into a regular unnamed temporary file, writing it to the backing storage ("rolling" it) if it was still stored in-memory.spooled_tempfile_in
andSpooledTempFile::new_in
methods 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::keep
deprecated in favor ofBuilder::disable_cleanup
.TempDir::into_path
is deprecated in favor ofTempDir::keep
.BREAKING:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.