Skip to content

update: upgrade dependencies (russh-sftp 4, windows-sys 0.101) - #374

Merged
inureyes merged 1 commit into
mainfrom
update/upgrade-deps-20261204
Dec 4, 2026
Merged

inureyes merged 1 commit into
mainfrom
update/upgrade-deps-20261204

Conversation

@inureyes

@inureyes inureyes commented Dec 4, 2026

Copy link
Copy Markdown
Member

Replace the yanked pin-project-lite 0.2.18 with 0.2.19 (transitive via tokio, hyper, reqwest, tracing), apply all semver-compatible lockfile updates, and raise declared requirements to the resolved versions (russh 0.65.4, clap 4.6.10, jiff 1.1.0, serde-saphyr 2.2.0, hickory-resolver 0.26.4, and others).

Major bumps

  • russh-sftp 3.0.1 -> 4.0.0: handles are now the opaque byte type SftpHandle instead of String. Migrated the client (RemoteFile keeps non-UTF-8 handles from third-party servers byte-exact), the server handler (handle map keyed by SftpHandle; handles logged with Debug formatting, which escapes client-controlled bytes), and the test mock handlers.
  • Ported the fix for upstream russh-sftp issue feat: Fix error logs breaking TUI layout by adding in-TUI log panel #104 into our sftp_loop, which copied the old upstream loop: an over-limit packet length left its body unread, desyncing the session and emitting one warning per 4 bytes. Any read error now ends the session after already-queued requests are answered. New test: oversized_packet_ends_session.
  • windows-sys 0.61 -> 0.101: no code change; the symbols used keep the same signatures. Transitive crates still use 0.61, so both versions are locked for Windows targets.

Held back

  • ssh-key 0.7.0-rc.12 (rc.13 available): russh 0.65.4 pins =0.7.0-rc.12, and our pin matches it.
  • generic-array 0.14.7 (0.14.9 available): crypto-common 0.1.7 pins =0.14.7 (via ratatui -> termwiz -> sha2 0.10).

Verification

  • Baseline on main: all gates passed (4696 tests). After: fmt, clippy (-D warnings, all targets), lib and integration tests pass (4698 tests), and cargo +1.97.1 check --workspace --locked passes.
  • Linux and Windows cross-checks could not run locally (aws-lc-sys C cross build); CI covers Linux.
  • Pre-existing and unchanged: cargo reports owo-colors as an unused dependency.

Replace the yanked pin-project-lite 0.2.18 with 0.2.19, apply all semver-compatible lockfile updates, and raise declared requirements to the resolved versions.

russh-sftp 4.0.0 changes file and directory handles from String to the opaque byte type SftpHandle. The client, the server handler, and the test mock handlers now use it, so non-UTF-8 handles are kept byte-exact and handles are logged with escaping Debug formatting.

The local sftp_loop copied the old upstream server loop and kept reading after a framing error. An over-limit packet length left its body unread and desynced the session (upstream russh-sftp issue #104). Any read error now ends the session after already-queued requests are answered, covered by the new oversized_packet_ends_session test.

windows-sys 0.101 needs no code change. ssh-key stays at =0.7.0-rc.12 to match russh 0.65.4, and generic-array stays at 0.14.7 because crypto-common 0.1.7 pins it.

fmt, clippy, lib and integration tests, and the MSRV check on 1.97 pass locally.
@inureyes inureyes added type:dependency Dependency updates status:review Under review priority:medium Medium priority issue labels Dec 4, 2026
@inureyes
inureyes merged commit b3650c5 into main Dec 4, 2026
5 checks passed
@inureyes
inureyes deleted the update/upgrade-deps-20261204 branch December 4, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:medium Medium priority issue status:review Under review type:dependency Dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant