Skip to content

Conversation

chantra
Copy link

@chantra chantra commented Oct 2, 2024

Simple windows-sys version bump to the latest published crate version.

@Wojtek242
Copy link
Collaborator

Hi @chantra, thanks for the PR, but based on the build outputs: https://github.com/rust-pcap/pcap/actions/runs/11135749919/job/32117440201?pr=369 you will need to ammend the code as well. Let me know if you need help.

You can ignore the lints as that is currently also a problem on main.

@chantra
Copy link
Author

chantra commented Oct 27, 2024

Thanks @Wojtek242 ,

I will update the PR accordingly. I think that now that you authorized this PR to run the GitHub actions, update should do too, so this may help. I don’t have a windows setup handy, but I am fairly confident I should be able to cross-compile easily with cargo.

@chantra
Copy link
Author

chantra commented Oct 28, 2024

@Wojtek242 ok, it seems I can't get the CI to run without approval.

This now builds with:

cargo build --target=x86_64-pc-windows-gnu

Since windows-sys-0.45.0,
`windows_sys::Win32::Networking::WinSock::ADDRESS_FAMILY` are u16 instead
of u32.
windows_sys::Win32::Foundation::HANDLE type
has changed since microsoft/windows-rs@d331301

update the tests accordingly.
@qrnch-jan
Copy link
Contributor

I apologize for PR-sniping you; I didn't see this PR before making #378

Your updated is incomplete -- it's missing fixes that are unveiled by the capture-stream feature (always build/test using --all-features just to be sure). You should merge those fixes from my PR to yours and then I'll close mine.

@chantra
Copy link
Author

chantra commented Dec 18, 2024

I apologize for PR-sniping you; I didn't see this PR before making #378

Your updated is incomplete -- it's missing fixes that are unveiled by the capture-stream feature (always build/test using --all-features just to be sure). You should merge those fixes from my PR to yours and then I'll close mine.

Thanks @qrnch-jan for the heads up. I am totally fine with your PR making it through.
I will close this one in favor of your.

@chantra chantra closed this Dec 18, 2024
facebook-github-bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Apr 7, 2025
Summary: This was discovered during D72270980 - the current `pcap` patch points to [#369](rust-pcap/pcap#369) that was abandoned in favor of [#378](rust-pcap/pcap#378). It also looks like the newer PR contains more fixes.

Reviewed By: capickett

Differential Revision: D72417065

fbshipit-source-id: 9da5febc967c621d693e4382994d8ddc670b9630
facebook-github-bot pushed a commit to facebook/sapling that referenced this pull request Apr 7, 2025
Summary: This was discovered during D72270980 - the current `pcap` patch points to [#369](rust-pcap/pcap#369) that was abandoned in favor of [#378](rust-pcap/pcap#378). It also looks like the newer PR contains more fixes.

Reviewed By: capickett

Differential Revision: D72417065

fbshipit-source-id: 9da5febc967c621d693e4382994d8ddc670b9630
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.

3 participants