chore(deps): update rust crate tempfile to v3.23.0 #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/tempfile-3.x-lockfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
3.13.0->3.23.0Release 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
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 has been generated by Renovate Bot.