t-rec-rs
t-rec-rs copied to clipboard
chore(deps): bump tempfile from 3.19.1 to 3.20.0
Bumps tempfile from 3.19.1 to 3.20.0.
Changelog
Sourced from tempfile's changelog.
3.20.0
This release mostly unifies the behavior/capabilities around "keeping" temporary files:
- Rename
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).- Rename
TempDir::into_path(via deprecation) toTempDir::keepto mirrorNamedTempFile::keep.- Add
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:
- Add
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.- Add
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.BREAKING:
Commits
99ffea6chore: release v3.20.0 (#358)bd2b267feat: make it possible to disable cleanup in-place after creation (#355)3b30099ci: really check docs for warnings (#357)f701f52ci: check docs (#356)d34afe9doc: improve SpooledData documentation6deb42edoc: make it easier to pick the correct tempfile constructor/typee284782feat: allow creating spooled temporary files in a specific directory (#353)07edc31feat: implementSpooledTempFile::into_file(#352)b122355fix: add must_use attribute to TempDir::keep (#351)cbd1e97feat: renameTempDir::into_pathtoTempDir::keep(#349)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)