Skip to content
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

fix(deps): update rust crate tempfile to 3.6 #170

Merged
merged 1 commit into from
Jun 19, 2023
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 22, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
tempfile (source) dependencies minor 3.3 -> 3.6

Release Notes

Stebalien/tempfile

v3.6.0

Compare Source

  • Update windows-sys to 0.48.
  • Update rustix min version to 0.37.11
  • Forward some NamedTempFile and SpooledTempFile methods to the underlying File object for
    better performance (especially vectorized writes, etc.).
  • Implement AsFd and AsHandle.
  • Misc documentation fixes and code cleanups.

v3.5.0

Compare Source

  • Update rustix from 0.36 to 0.37.1. This makes wasi work on rust stable
  • Update windows-sys, redox_syscall
  • BREAKING: Remove the implementation of Write for &NamedTempFile<F> where &F: Write. Unfortunately, this can cause compile issues in unrelated code (https://github.com/Stebalien/tempfile/issues/224).

v3.4.0

Compare Source

SECURITY: Prior tempfile releases depended on remove_dir_all version 0.5.0 which was vulnerable to a TOCTOU race. This same race is present in rust versions prior to 1.58.1.

Features:

  • Generalized temporary files: NamedTempFile can now abstract over different kinds of files (e.g.,
    unix domain sockets, pipes, etc.):
    • Add Builder::make and Builder::make_in for generalized temp file
      creation.
    • Add NamedTempFile::from_parts to complement NamedTempFile::into_parts.
    • Add generic parameter to NamedTempFile to support wrapping non-File types.

Bug Fixes/Improvements:

  • Don't try to create a temporary file multiple times if the file path has been fully specified by
    the user (no random characters).
  • NamedTempFile::persist_noclobber is now always atomic on linux when renameat_with is
    supported. Previously, it would first link the new path, then unlink the previous path.
  • Fix compiler warnings on windows.

Trivia:

  • Switch from libc to rustix on wasi/unix. This now makes direct syscalls instead of calling
    through libc.
  • Remove remove_dir_all dependency. The rust standard library has optimized their internal version
    significantly.
  • Switch to official windows-sys windows bindings.

Breaking:

  • The minimum rust version is now 1.48.0.
  • Mark most functions as must_use.
  • Uses direct syscalls on linux by default, instead of libc.
  • The new type parameter in NamedTempFile may lead to type inference issues in some cases.

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.


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

This PR has been generated by Mend Renovate. View repository job log here.

@netlify
Copy link

netlify bot commented Mar 22, 2023

Deploy Preview for hoard-docs ready!

Name Link
🔨 Latest commit 4c0c257
🔍 Latest deploy log https://app.netlify.com/sites/hoard-docs/deploys/648f6a5f742c3e0008f7aebf
😎 Deploy Preview https://deploy-preview-170--hoard-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented Mar 22, 2023

Codecov Report

Merging #170 (4c0c257) into main (8dfb744) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #170      +/-   ##
==========================================
- Coverage   90.17%   90.13%   -0.04%     
==========================================
  Files          73       73              
  Lines        5108     5108              
==========================================
- Hits         4606     4604       -2     
- Misses        502      504       +2     

see 2 files with indirect coverage changes

@renovate renovate bot force-pushed the renovate/tempfile-3.x branch from 251e44e to a73b8ed Compare March 24, 2023 07:59
@renovate renovate bot changed the title fix(deps): update rust crate tempfile to 3.4 fix(deps): update rust crate tempfile to 3.5 Mar 29, 2023
@renovate renovate bot force-pushed the renovate/tempfile-3.x branch from a73b8ed to c9f0ad8 Compare March 29, 2023 04:17
@renovate renovate bot changed the title fix(deps): update rust crate tempfile to 3.5 fix(deps): update rust crate tempfile to 3.6 Jun 6, 2023
@renovate renovate bot force-pushed the renovate/tempfile-3.x branch from c9f0ad8 to 4b7de7c Compare June 6, 2023 23:47
@renovate renovate bot force-pushed the renovate/tempfile-3.x branch from 4b7de7c to 9f17080 Compare June 18, 2023 07:50
@renovate renovate bot force-pushed the renovate/tempfile-3.x branch from 9f17080 to 4c0c257 Compare June 18, 2023 20:34
@Shadow53 Shadow53 merged commit f624326 into main Jun 19, 2023
@renovate renovate bot deleted the renovate/tempfile-3.x branch June 19, 2023 10:24
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