Skip to content

Commit df1b22f

Browse files
chore(deps): update rust crate trash to v5.3.0 (#164)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [mio](https://redirect.github.com/tokio-rs/mio) | workspace.dependencies | patch | `1.2.4` → `1.2.5` | | [trash](https://redirect.github.com/ArturKovacs/trash) | workspace.dependencies | minor | `5.2.9` → `5.3.0` | --- ### Release Notes <details> <summary>tokio-rs/mio (mio)</summary> ### [`v1.2.5`](https://redirect.github.com/tokio-rs/mio/blob/HEAD/CHANGELOG.md#125) [Compare Source](https://redirect.github.com/tokio-rs/mio/compare/v1.2.4...v1.2.5) - Add support for wasm32-unknown-emscripten ([#&#8203;1969](https://redirect.github.com/tokio-rs/mio/pull/1969)). - Implement vectored I/O for Windows NamedPipe ([#&#8203;2013](https://redirect.github.com/tokio-rs/mio/pull/2013)). - Size Windows `NamedPipe` reads like the caller's buffer ([#&#8203;2028](https://redirect.github.com/tokio-rs/mio/pull/2028)). - Fix `Waker` events not being marked as readable on NetBSD, OpenBSD and DragonFly ([#&#8203;2027](https://redirect.github.com/tokio-rs/mio/pull/2027)). - Rewrite of Windows `NamedPipe` that makes the code simpler and should make it (slightly faster ([#&#8203;2022](https://redirect.github.com/tokio-rs/mio/pull/2022)). </details> <details> <summary>ArturKovacs/trash (trash)</summary> ### [`v5.3.0`](https://redirect.github.com/ArturKovacs/trash/blob/HEAD/CHANGELOG.md#530-2026-11-05) [Compare Source](https://redirect.github.com/ArturKovacs/trash/compare/v5.2.9...v5.3.0) ##### Documentation - <csr-id-01695582c335c71b0959116bd955b6cf5ce2c5ec/> configure docs.rs platform targets <!-- Byron --> I reduced the target list to the 3 common ones. Let's see if it works. <!-- agent --> Recent docs.rs releases only expose Linux documentation. Explicitly request the five standard docs.rs targets so macOS and Windows documentation are included, keeping Linux first as the default landing page. A Cargo metadata assertion failed before the change because the docs.rs target list was absent, and passes with the configured targets. ##### New Features - <csr-id-df53b3f9187377471f78676b027c7f9bf564a1b0/> add Portal backend This only adds the basic functionality to make it work. ##### Bug Fixes - <csr-id-b6e262454df52eedf05dba10ffbe3e3a88b4a8c4/> preserve path prefixes when decoding slashes <!-- agent --> Decode the complete path byte string instead of collecting decoded components into a PathBuf. A component beginning with %2F previously discarded the prefix, redirected restoration to the filesystem root, and could erase relative parent traversal before validation. Add relative and absolute encoded-separator regressions, traversal rejection, and restoration coverage. The relative separator case fails before the fix. - <csr-id-4ee80bd16165140213d9748d669216fe3848b75f/> reject original paths without filenames <!-- agent --> Validate the decoded path before joining the trash base so dot paths cannot resolve to the base directory. Route roots and paths ending in parent components through the invalid-original-path warning as well. Add literal and encoded dot and parent regression cases. The dot-path case fails before the fix; the listing regression passes with and without chrono afterward. - <csr-id-6fcae5b89058b4fa76840bfc00f8a47861f4bc05/> trim surrounding trashinfo path whitespace <!-- agent --> Trim both ends of the encoded Path value before decoding so trailing spaces and tabs do not become filename bytes. Extend the whitespace fixture while retaining encoded filename space coverage. - <csr-id-8afaa3432e795bab3ae6f7f246d28a42cb10b869/> report why the shell refused to recycle an item `delete` answered every item the shell skipped with `Error::Unknown { "Some operations were aborted" }`. With `FOF_NO_UI` a refused item is skipped, not asked about: `PerformOperations` and `FinishOperations` both report success, and only `GetAnyOperationsAborted` says that something went wrong. Why is reported per item, to an `IFileOperationProgressSink`. A sink now records the result of each item. The first failure becomes `Error::Os { code, description }` naming the item, the reason and the code, e.g. for a file the user may not delete: ``` windows error: C:\dir\locked.txt: access denied to the source (0x80270021) ``` The reasons are mostly the shell copy engine's own codes (`0x8027xxxx`, `sherrors.h`). The system has no message text for them — `FormatMessage` finds none, or one from another facility (`0x80270002` comes out as a Network Access Protection message) — so they are spelled out here, also for errors returned by `restore_all` and `purge_all`. Success codes of the copy engine, such as `COPYENGINE_S_DONT_PROCESS_CHILDREN` for a recycled item, are not failures. `CoCreateInstance(...).unwrap()` now propagates its error instead of panicking. `windows-core` is named as a dependency because `#[implement]` expands to paths in it; it already was one through `windows`. - <csr-id-7f63659d5578e37e0553f7f4634e293de779601f/> list items under their file name, extension included `list()` took an item's name from `SIGDN_PARENTRELATIVE`. Inside the Recycle Bin folder that display name, like every other `SIGDN_*` name and `PKEY_ItemNameDisplay`, follows Explorer's "Hide extensions for known file types" setting, which is on by default. So `report.txt` was listed as `report`, `original_path()` pointed at a file that never existed, and `restore_all` moved the item back without its extension. Files differing only in their extension (`a.txt`, `a.png`) were listed under one name and refused as `RestoreTwins`. `PKEY_FileName` is the file name itself, independent of that setting. The new test trashes `.txt`, `.png` and `.html` files, checks the listed names and restores them. Without the fix it fails on a default Windows setup; with it, it passes with the setting on and off, and on Linux. - <csr-id-4f11bb1f9a73fbfb14e93bb87f4485de3e55c3a4/> resolve trashinfo paths correctly Resolve home-relative paths against the data directory and decode recorded paths before joining the base directory. Skip empty paths, NUL bytes, relative parent traversal, and paths without a usable filename or parent. Extend the listing regression cases and restore a non-UTF-8 filename with a literal percent escape in the data directory path. - <csr-id-64bae30dffd249f5c24326e48ceb49e649cdd192/> honor trashinfo record parsing rules Ignore extra lines, split key/value pairs once, and honor the first occurrence of each key. Validate the header and preserve whitespace compatibility before decoding path bytes or parsing dates. Exercise listing with temporary records, including duplicate dates, invalid first dates, equals signs, and encoded filename spaces, with and without chrono. - <csr-id-91f6dda79b4c0c421641e6c0d582338a60723d7e/> traverse ancestors without read permission Opening every ancestor with O_RDONLY rejects files below searchable but unreadable directories, even though TrashFile can trash them. Use O_PATH for traversal while retaining the directory and symlink checks. Add a portal regression test with 0111 and 0311 ancestor modes that verifies read access is denied before trashing succeeds. The test fails with the old flags and passes with O_PATH; all seven portal unit tests pass. </details> --- ### Configuration 📅 **Schedule**: (in timezone Asia/Shanghai) - Branch creation - "before 10am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/rolldown/notify). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIyOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent ac19f55 commit df1b22f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎Cargo.lock‎

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)