Skip to content

Conversation

@vaqxai
Copy link

@vaqxai vaqxai commented Dec 30, 2025

Summary

  • Fixes Windows build by gating Unix-specific permission APIs and cleaning up platform warnings.
  • Clarifies PyO3 lifetime annotations to silence mismatched lifetime warnings.

Changes

  • Added conditional compilation for Unix-only PermissionsExt usage and permission checks, with Windows-safe fallbacks.
  • Removed unused Windows metadata variables behind cfg to avoid unused warnings.
  • Normalized PyO3 return signatures to use explicit '_ lifetimes for Cow<[u8]> in bindings, resolving lifetime syntax warnings.

Testing

cargo build --release on Windows (msvc)
maturin develop --release after installing maturin

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