Skip to content

chore: drop stale windows-sys 0.48 transitive deps from Cargo.lock - #98

Merged
skuenzli merged 1 commit into
mainfrom
chore/windows-sys-0.48-cleanup
Jun 27, 2026
Merged

chore: drop stale windows-sys 0.48 transitive deps from Cargo.lock#98
skuenzli merged 1 commit into
mainfrom
chore/windows-sys-0.48-cleanup

Conversation

@skuenzli

Copy link
Copy Markdown
Contributor

Summary

Removes the 9 stale windows-sys 0.48 family entries from Cargo.lock, resolving #85.

Bumps winapi-util 0.1.9 -> 0.1.11, which resolves windows-sys to the 0.59 line already present in the lock. This drops the dead duplicate entries:

  • windows-sys 0.48.0
  • windows-targets 0.48.5
  • windows_aarch64_gnullvm 0.48.5, windows_aarch64_msvc 0.48.5
  • windows_i686_gnu 0.48.5, windows_i686_msvc 0.48.5
  • windows_x86_64_gnu 0.48.5, windows_x86_64_gnullvm 0.48.5, windows_x86_64_msvc 0.48.5

These were reachable only through a Windows-only, build-time-only chain:

windows-sys 0.48.0 -> winapi-util 0.1.9 -> same-file -> walkdir 2.5.0
  -> lalrpop 0.22.2 [build-dependencies] -> cedar-policy-core 4.8.2

None of it links into the shipped cdylib (build-deps do not enter the wheel; winapi-util references windows-sys only under #[cfg(windows)]). Removing the duplicates slims cargo audit / SBOM output and removes a source of false-positive advisories.

Approach

Targeted cargo update winapi-util rather than a blanket cargo update, for a minimal, auditable diff — winapi-util 0.1.11 reuses the existing windows-sys 0.59.0, adding nothing new.

Scope

Verification

  • git diff main --stat -> Cargo.lock only (22 ins / 88 del)
  • No windows*0.48 entries remain; only windows-sys 0.59.0 left
  • maturin develop --release rebuilds cleanly
  • pytest -> 198 passed (+ 2 subtests)

Closes #85.

🤖 Generated with Claude Code

Bump winapi-util 0.1.9 -> 0.1.11, which resolves windows-sys to the
0.59 line already in the lock. Removes 9 dead duplicate entries
(windows-sys 0.48.0, windows-targets 0.48.5, and the seven
windows_* 0.48.5 platform crates) that were reachable only through a
Windows-only, build-time-only chain (winapi-util -> walkdir ->
lalrpop [build-dependencies] -> cedar-policy-core). None of these link
into the shipped cdylib; removing them slims cargo audit / SBOM output.

Lock-only change, no source edits. Closes #85.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@skuenzli
skuenzli merged commit 6cf72f8 into main Jun 27, 2026
7 checks passed
dannypsnl pushed a commit to dannypsnl/cedar-py that referenced this pull request Jul 3, 2026
…ityio#85 note

- Remove the now-done GH k9securityio#85 follow-on bullet (landed as PR k9securityio#98).
- Add reusable guidance on collapsing a stale duplicate transitive
  version by re-resolving the consuming crate's edge (cargo update
  <consumer>), with the winapi-util/windows-sys case as the example.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
swenger pushed a commit to swenger/cedar-py that referenced this pull request Jul 10, 2026
…ityio#85 note

- Remove the now-done GH k9securityio#85 follow-on bullet (landed as PR k9securityio#98).
- Add reusable guidance on collapsing a stale duplicate transitive
  version by re-resolving the consuming crate's edge (cargo update
  <consumer>), with the winapi-util/windows-sys case as the example.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@skuenzli
skuenzli deleted the chore/windows-sys-0.48-cleanup branch July 10, 2026 14:23
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.

Clean up stale windows-sys 0.48 transitive deps in Cargo.lock

1 participant