Skip to content

chore(deps): update rust crate tempfile to v3.20.0 #208

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

Merged
merged 2 commits into from
Jul 10, 2025

Conversation

renovateselfhost[bot]
Copy link
Contributor

@renovateselfhost renovateselfhost bot commented Mar 7, 2025

This PR contains the following updates:

Package Type Update Change
tempfile (source) dev-dependencies minor 3.18.0 -> 3.20.0

Release Notes

Stebalien/tempfile (tempfile)

v3.20.0

Compare Source

This release mostly unifies the behavior/capabilities around "keeping" temporary files:

  • Rename Builder::keep(bool) (via deprecation) to Builder::disable_cleanup(bool) to make it clear that behaves differently from NamedTempFile::keep(). The former disables automatic cleanup while the latter consumes the NamedTempFile object entirely and unsets the "temporary file" attribute (on Windows).
  • Rename TempDir::into_path (via deprecation) to TempDir::keep to mirror NamedTempFile::keep.
  • Add TempDir::disable_cleanup, NamedTempFile::disable_cleanup, and TempPath::disable_cleanup making it possible to disable automatic cleanup in-place after creating a temporary file/directory (equivalent to calling Builder::disable_cleanup before creating the file/directory).

Additionally, it adds a few spooled temporary file features:

  • Add SpooledTempFile::into_file for turning a SpooledTempFile into a regular unnamed temporary file, writing it to the backing storage ("rolling" it) if it was still stored in-memory.
  • Add spooled_tempfile_in and SpooledTempFile::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 of Builder::disable_cleanup.
  • TempDir::into_path is deprecated in favor of TempDir::keep.

BREAKING:

v3.19.1

Compare Source

  • Don't unlink temporary files immediately on Windows (fixes #​339). Unfortunately, this seemed to corrupt the file object (possibly a Windows kernel bug) in rare cases and isn't strictly speaking necessary.

v3.19.0

Compare Source

  • Remove direct dependency on cfg-if. It's still in the tree, but we didn't really need to use it in this crate.
  • Add an unstable feature (unstable-windows-keep-open-tempfile) to test a potential fix to #​339.

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 is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@renovateselfhost renovateselfhost bot changed the title chore(deps): update rust crate tempfile to v3.18.0 chore(deps): update rust crate tempfile to v3.18.0 - autoclosed Mar 13, 2025
@renovateselfhost renovateselfhost bot closed this Mar 13, 2025
@renovateselfhost renovateselfhost bot deleted the renovate/tempfile-3.x-lockfile branch March 13, 2025 06:04
@renovateselfhost renovateselfhost bot changed the title chore(deps): update rust crate tempfile to v3.18.0 - autoclosed chore(deps): update rust crate tempfile to v3.18.0 Mar 14, 2025
@renovateselfhost renovateselfhost bot reopened this Mar 14, 2025
@renovateselfhost renovateselfhost bot force-pushed the renovate/tempfile-3.x-lockfile branch from a176dfe to b922037 Compare March 14, 2025 14:35
@renovateselfhost renovateselfhost bot changed the title chore(deps): update rust crate tempfile to v3.18.0 chore(deps): update rust crate tempfile to v3.19.0 Mar 14, 2025
@renovateselfhost renovateselfhost bot force-pushed the renovate/tempfile-3.x-lockfile branch 2 times, most recently from 44bad5f to 5499733 Compare March 20, 2025 14:36
@renovateselfhost renovateselfhost bot changed the title chore(deps): update rust crate tempfile to v3.19.0 chore(deps): update rust crate tempfile to v3.19.1 Mar 20, 2025
@renovateselfhost renovateselfhost bot force-pushed the renovate/tempfile-3.x-lockfile branch from 5499733 to 20e2324 Compare May 12, 2025 14:37
@renovateselfhost renovateselfhost bot changed the title chore(deps): update rust crate tempfile to v3.19.1 chore(deps): update rust crate tempfile to v3.20.0 May 12, 2025
@TanyaSrinidhi TanyaSrinidhi added this pull request to the merge queue Jul 10, 2025
Merged via the queue into main with commit 9e50e19 Jul 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant