Skip to content

deps(deps): bump tempfile from 3.14.0 to 3.20.0#2236

Merged
gabriel-aranha-cw merged 1 commit intomainfrom
dependabot-cargo-tempfile-3.20.0
Aug 13, 2025
Merged

deps(deps): bump tempfile from 3.14.0 to 3.20.0#2236
gabriel-aranha-cw merged 1 commit intomainfrom
dependabot-cargo-tempfile-3.20.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 12, 2025

Bumps tempfile from 3.14.0 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) 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:

3.19.1

  • 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.

3.19.0

  • 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.

3.18.0

  • Update rustix to 1.0.0.
  • Make NamedTempFile::persist_noclobber atomic on Apple operating systems. It's now atomic on MacOS, Windows, and Linux (depending on the OS version and filesystem used).

3.17.1

  • Fix build with windows-sys 0.52. Unfortunately, we have no CI for older windows-sys versions at the moment...

3.17.0

  • Make sure to use absolute paths in when creating unnamed temporary files (avoids a small race in the "immediate unlink" logic) and in Builder::make_in (when creating temporary files of arbitrary types).
  • Prevent a theoretical crash that could (maybe) happen when a temporary file is created from a drop function run in a TLS destructor. Nobody has actually reported a case of this happening in practice and I have been unable to create this scenario in a test.
  • When reseeding with getrandom, use platform (e.g., CPU) specific randomness sources where possible.
  • Clarify some documentation.
  • Unlink unnamed temporary files on windows immediately when possible instead of waiting for the handle to be closed. We open files with "Unix" semantics, so this is generally possible.

3.16.0

... (truncated)

Commits
  • 99ffea6 chore: release v3.20.0 (#358)
  • bd2b267 feat: make it possible to disable cleanup in-place after creation (#355)
  • 3b30099 ci: really check docs for warnings (#357)
  • f701f52 ci: check docs (#356)
  • d34afe9 doc: improve SpooledData documentation
  • 6deb42e doc: make it easier to pick the correct tempfile constructor/type
  • e284782 feat: allow creating spooled temporary files in a specific directory (#353)
  • 07edc31 feat: implement SpooledTempFile::into_file (#352)
  • b122355 fix: add must_use attribute to TempDir::keep (#351)
  • cbd1e97 feat: rename TempDir::into_path to TempDir::keep (#349)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependabot dependencies Pull requests that update a dependency file rust labels Aug 12, 2025
@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.02%. Comparing base (0834609) to head (6e50b1c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2236      +/-   ##
==========================================
+ Coverage   83.87%   84.02%   +0.15%     
==========================================
  Files         131      131              
  Lines       10523    10523              
==========================================
+ Hits         8826     8842      +16     
+ Misses       1697     1681      -16     
Flag Coverage Δ
contracts-rocks- 46.61% <ø> (-0.03%) ⬇️
e2e-admin-password 23.13% <ø> (ø)
e2e-clock-stratus 25.92% <ø> (ø)
e2e-genesis 27.64% <ø> (ø)
e2e-importer-offline 61.44% <ø> (+0.01%) ⬆️
e2e-rpc-downloader 56.23% <ø> (-0.13%) ⬇️
e2e-stratus 57.57% <ø> (ø)
leader-follower- 63.54% <ø> (+0.58%) ⬆️
rust-tests 30.19% <ø> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dependabot dependabot bot force-pushed the dependabot-cargo-tempfile-3.20.0 branch from 05ed186 to 53471b9 Compare August 13, 2025 14:41
@gabriel-aranha-cw
Copy link
Contributor

@dependabot rebase

Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.14.0 to 3.20.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](Stebalien/tempfile@v3.14.0...v3.20.0)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-version: 3.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot-cargo-tempfile-3.20.0 branch from 53471b9 to 6e50b1c Compare August 13, 2025 15:59
@gabriel-aranha-cw gabriel-aranha-cw merged commit a510c9f into main Aug 13, 2025
50 of 54 checks passed
@gabriel-aranha-cw gabriel-aranha-cw deleted the dependabot-cargo-tempfile-3.20.0 branch August 13, 2025 17:34
@stratus-benchmark
Copy link

Final benchmark:
Run ID: bench-a8ea67d4

Git Info:

Leader Stats:
RPS Stats: Max: 3246.00, Min: 2074.00, Avg: 2905.58, StdDev: 132.58
TPS Stats: Max: 3269.00, Min: 11.00, Avg: 2894.25, StdDev: 218.38

Follower Stats:
Imported Blocks/s: No imported blocks data
Imported Transactions/s: No imported transactions data

Plots:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependabot dependencies Pull requests that update a dependency file rust

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments