forked from mirrors/gecko-dev
Bug 1874998 - Update tempfile to 3.9.0. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D198761
This commit is contained in:
parent
fc93952c32
commit
87f9414fa0
12 changed files with 93 additions and 15 deletions
17
Cargo.lock
generated
17
Cargo.lock
generated
|
|
@ -4203,7 +4203,7 @@ checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447"
|
|||
dependencies = [
|
||||
"cfg-if 1.0.0",
|
||||
"libc",
|
||||
"redox_syscall",
|
||||
"redox_syscall 0.3.999",
|
||||
"smallvec",
|
||||
"windows-targets 0.48.999",
|
||||
]
|
||||
|
|
@ -4609,6 +4609,13 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "redox_syscall"
|
||||
version = "0.3.999"
|
||||
dependencies = [
|
||||
"redox_syscall 0.4.999",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "redox_syscall"
|
||||
version = "0.4.999"
|
||||
|
||||
[[package]]
|
||||
name = "redox_users"
|
||||
|
|
@ -5468,15 +5475,15 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "tempfile"
|
||||
version = "3.8.0"
|
||||
version = "3.9.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef"
|
||||
checksum = "01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa"
|
||||
dependencies = [
|
||||
"cfg-if 1.0.0",
|
||||
"fastrand",
|
||||
"redox_syscall",
|
||||
"redox_syscall 0.4.999",
|
||||
"rustix",
|
||||
"windows-sys 0.48.999",
|
||||
"windows-sys 0.52.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ redox_users = { path = "build/rust/redox_users" }
|
|||
|
||||
# Patch redox_syscall to an empty crate
|
||||
redox_syscall = { path = "build/rust/redox_syscall" }
|
||||
redox_syscall_0_3 = { package = "redox_syscall", path = "build/rust/redox_syscall-0.3" }
|
||||
|
||||
# Override tinyvec with smallvec
|
||||
tinyvec = { path = "build/rust/tinyvec" }
|
||||
|
|
|
|||
11
build/rust/redox_syscall-0.3/Cargo.toml
Normal file
11
build/rust/redox_syscall-0.3/Cargo.toml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[package]
|
||||
name = "redox_syscall"
|
||||
version = "0.3.999"
|
||||
edition = "2018"
|
||||
license = "MPL-2.0"
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
|
||||
[dependencies]
|
||||
redox_syscall = "0.4"
|
||||
3
build/rust/redox_syscall-0.3/lib.rs
Normal file
3
build/rust/redox_syscall-0.3/lib.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "redox_syscall"
|
||||
version = "0.3.999"
|
||||
version = "0.4.999"
|
||||
edition = "2018"
|
||||
license = "MPL-2.0"
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ uuid = { version = "1", features = ["serde", "v4"], optional = true }
|
|||
|
||||
[target."cfg(windows)".dependencies]
|
||||
scopeguard = { version = "1", optional = true }
|
||||
windows-sys = { version = "0.48", features = ["Win32_Security", "Win32_System_Com", "Win32_System_Memory", "Win32_System_Pipes", "Win32_System_SystemServices", "Win32_System_Threading"], optional = true }
|
||||
windows-sys = { version = "0.48", features = ["Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Com", "Win32_System_Memory", "Win32_System_Pipes", "Win32_System_SystemServices", "Win32_System_Threading"], optional = true }
|
||||
|
||||
[build-dependencies]
|
||||
bindgen = { version = "0.69", default-features = false, features = ["runtime"], optional = true }
|
||||
|
|
|
|||
|
|
@ -3615,6 +3615,11 @@ who = "Mike Hommey <mh+mozilla@glandium.org>"
|
|||
criteria = "safe-to-deploy"
|
||||
delta = "3.6.0 -> 3.8.0"
|
||||
|
||||
[[audits.tempfile]]
|
||||
who = "Mike Hommey <mh+mozilla@glandium.org>"
|
||||
criteria = "safe-to-deploy"
|
||||
delta = "3.8.0 -> 3.9.0"
|
||||
|
||||
[[audits.termcolor]]
|
||||
who = "Mike Hommey <mh+mozilla@glandium.org>"
|
||||
criteria = "safe-to-deploy"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"files":{"CHANGELOG.md":"14cb935001b72d1da431865d0e618b58ca962cc17c8be6bcd9cf4e1699f58b7d","Cargo.toml":"285d4565218bd4a8e5d36cb9b12ece4b8bb9c91d3357e75708acb0ca2f414b49","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"8b427f5bc501764575e52ba4f9d95673cf8f6d80a86d0d06599852e1a9a20a36","README.md":"972f1c35ec653943e067fd2c3d09e78f593b2e9e1eafd5b9668bf3653513de3e","src/dir.rs":"3b515f42feb934ba83ba56d506116e5e932c6b863b764fd61d26994eff28700a","src/error.rs":"cc7d8eace0fff11cb342158d2885d5637bfb14b24ef30755e808554772039c5f","src/file/imp/mod.rs":"f6da9fcd93f11889670a251fdd8231b5f4614e5a971b7b183f52b44af68568d5","src/file/imp/other.rs":"501cd1b444a5821127ea831fc8018706148f2d9f47c478f502b069963a42a2c7","src/file/imp/unix.rs":"0fa63a8b831947fdc7307e889d129adef6f47b19965b963a5e25d70cb3106e62","src/file/imp/windows.rs":"fa4211087c36290064de9a41b5e533e4e8c24a10fb8f8908835a67e00555c06e","src/file/mod.rs":"f417e0e8637116e50de201581b1dfe8feb8dee30f71c5bb9dbcd95603094cb49","src/lib.rs":"6303e7470c680ad785f32eb717de2e512b88c2c5da0e1684e3704471fabd7398","src/spooled.rs":"de848218bb7c0733d9c46e337564137673c95f5a6cf9f6bb28baf218b2503247","src/util.rs":"63737b9180cb769c1fcac56f1fa928221ae41a8917872d3e878d0a915e877710","tests/namedtempfile.rs":"87dd6a8bba2fdd77418ec2b50b8aec5e26d05a2f780182b4e9ff464b3404d47c","tests/spooled.rs":"a97e96404dc5136421ac027b965070c0d5b44c93d06d456e12dc85f81755d064","tests/tempdir.rs":"f5a86f56df6bb60aa5dfa136ce75f8d0f29c2e87546dccfe1fb680d209be525e","tests/tempfile.rs":"9a2f8142151a6aa2fd047aa3749f9982ece4b080a3ace0d3c58d6bdb3f883c81"},"package":"cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef"}
|
||||
{"files":{"CHANGELOG.md":"6ca436fe5f63922174c061cb402e9b5a1e455b66a3b5677d1c191c04962b5832","Cargo.toml":"c79c844a01b8c7aec169d6506a3c588edacdfcdc835d2577b14dc064b342ac75","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"8b427f5bc501764575e52ba4f9d95673cf8f6d80a86d0d06599852e1a9a20a36","README.md":"972f1c35ec653943e067fd2c3d09e78f593b2e9e1eafd5b9668bf3653513de3e","deny.toml":"cb4c35327cbf8a20a6b19ac3fdf2c47b665da1662c90e3eae8a3825f9b72596e","src/dir.rs":"3b515f42feb934ba83ba56d506116e5e932c6b863b764fd61d26994eff28700a","src/error.rs":"cc7d8eace0fff11cb342158d2885d5637bfb14b24ef30755e808554772039c5f","src/file/imp/mod.rs":"f6da9fcd93f11889670a251fdd8231b5f4614e5a971b7b183f52b44af68568d5","src/file/imp/other.rs":"501cd1b444a5821127ea831fc8018706148f2d9f47c478f502b069963a42a2c7","src/file/imp/unix.rs":"0fa63a8b831947fdc7307e889d129adef6f47b19965b963a5e25d70cb3106e62","src/file/imp/windows.rs":"fa4211087c36290064de9a41b5e533e4e8c24a10fb8f8908835a67e00555c06e","src/file/mod.rs":"3a51ab219e0adab18324cab072fed01b0805781d6f15e79ca8b8a36543683bcc","src/lib.rs":"6303e7470c680ad785f32eb717de2e512b88c2c5da0e1684e3704471fabd7398","src/spooled.rs":"de848218bb7c0733d9c46e337564137673c95f5a6cf9f6bb28baf218b2503247","src/util.rs":"63737b9180cb769c1fcac56f1fa928221ae41a8917872d3e878d0a915e877710","tests/namedtempfile.rs":"87dd6a8bba2fdd77418ec2b50b8aec5e26d05a2f780182b4e9ff464b3404d47c","tests/spooled.rs":"a97e96404dc5136421ac027b965070c0d5b44c93d06d456e12dc85f81755d064","tests/tempdir.rs":"f5a86f56df6bb60aa5dfa136ce75f8d0f29c2e87546dccfe1fb680d209be525e","tests/tempfile.rs":"9a2f8142151a6aa2fd047aa3749f9982ece4b080a3ace0d3c58d6bdb3f883c81"},"package":"01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa"}
|
||||
11
third_party/rust/tempfile/CHANGELOG.md
vendored
11
third_party/rust/tempfile/CHANGELOG.md
vendored
|
|
@ -1,5 +1,16 @@
|
|||
# Changelog
|
||||
|
||||
## 3.9.0
|
||||
|
||||
- Updates windows-sys to 0.52
|
||||
- Updates minimum rustix version to 0.38.25
|
||||
|
||||
## 3.8.1
|
||||
|
||||
- Update rustix to fix a potential panic on `persist_noclobber` on android.
|
||||
- Update redox_syscall to 0.4 (on redox).
|
||||
- Fix some docs typos.
|
||||
|
||||
## 3.8.0
|
||||
|
||||
- Added `with_prefix` and `with_prefix_in` to `TempDir` and `NamedTempFile` to make it easier to create temporary files/directories with nice prefixes.
|
||||
|
|
|
|||
8
third_party/rust/tempfile/Cargo.toml
vendored
8
third_party/rust/tempfile/Cargo.toml
vendored
|
|
@ -13,7 +13,7 @@
|
|||
edition = "2018"
|
||||
rust-version = "1.63"
|
||||
name = "tempfile"
|
||||
version = "3.8.0"
|
||||
version = "3.9.0"
|
||||
authors = [
|
||||
"Steven Allen <steven@stebalien.com>",
|
||||
"The Rust Project Developers",
|
||||
|
|
@ -45,14 +45,14 @@ version = "0.3"
|
|||
nightly = []
|
||||
|
||||
[target."cfg(any(unix, target_os = \"wasi\"))".dependencies.rustix]
|
||||
version = "0.38"
|
||||
version = "0.38.26"
|
||||
features = ["fs"]
|
||||
|
||||
[target."cfg(target_os = \"redox\")".dependencies.redox_syscall]
|
||||
version = "0.3"
|
||||
version = "0.4"
|
||||
|
||||
[target."cfg(windows)".dependencies.windows-sys]
|
||||
version = "0.48"
|
||||
version = "0.52"
|
||||
features = [
|
||||
"Win32_Storage_FileSystem",
|
||||
"Win32_Foundation",
|
||||
|
|
|
|||
40
third_party/rust/tempfile/deny.toml
vendored
Normal file
40
third_party/rust/tempfile/deny.toml
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
|
||||
[advisories]
|
||||
notice = "deny"
|
||||
unmaintained = "deny"
|
||||
vulnerability = "deny"
|
||||
yanked = "deny"
|
||||
ignore = []
|
||||
|
||||
[licenses]
|
||||
allow = [
|
||||
"Apache-2.0",
|
||||
"MIT",
|
||||
]
|
||||
default = "deny"
|
||||
confidence-threshold = 1.0
|
||||
unlicensed = "deny"
|
||||
|
||||
[bans]
|
||||
allow = []
|
||||
deny = []
|
||||
multiple-versions = "deny"
|
||||
skip = [
|
||||
# Transitive dependency of both redox_syscall and rustix (rustix has newer).
|
||||
#
|
||||
# Only one version of bitflags ultimately gets compiled in due to OS-based feature flags in tempfile.
|
||||
{ name = "bitflags" },
|
||||
]
|
||||
skip-tree = []
|
||||
wildcards = "deny"
|
||||
|
||||
[sources]
|
||||
allow-git = []
|
||||
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
|
||||
unknown-git = "deny"
|
||||
unknown-registry = "deny"
|
||||
|
||||
[sources.allow-org]
|
||||
github = []
|
||||
gitlab = []
|
||||
bitbucket = []
|
||||
6
third_party/rust/tempfile/src/file/mod.rs
vendored
6
third_party/rust/tempfile/src/file/mod.rs
vendored
|
|
@ -611,7 +611,7 @@ impl NamedTempFile<File> {
|
|||
/// This is equivalent to:
|
||||
///
|
||||
/// ```ignore
|
||||
/// Builder::new().prefix(&prefix).tempfile()
|
||||
/// Builder::new().tempfile_in(dir)
|
||||
/// ```
|
||||
///
|
||||
/// See [`NamedTempFile::new()`] for details.
|
||||
|
|
@ -731,7 +731,7 @@ impl<F> NamedTempFile<F> {
|
|||
/// # Security
|
||||
///
|
||||
/// This method persists the temporary file using its path and may not be
|
||||
/// secure in the in all cases. Please read the security section on the top
|
||||
/// secure in all cases. Please read the security section on the top
|
||||
/// level documentation of this type for details.
|
||||
///
|
||||
/// # Errors
|
||||
|
|
@ -785,7 +785,7 @@ impl<F> NamedTempFile<F> {
|
|||
/// # Security
|
||||
///
|
||||
/// This method persists the temporary file using its path and may not be
|
||||
/// secure in the in all cases. Please read the security section on the top
|
||||
/// secure in all cases. Please read the security section on the top
|
||||
/// level documentation of this type for details.
|
||||
///
|
||||
/// # Errors
|
||||
|
|
|
|||
Loading…
Reference in a new issue