Skip to content

Do not use windows-sys types in public API #576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 24, 2025
Merged

Conversation

Darksonn
Copy link
Collaborator

@Darksonn Darksonn commented May 1, 2025

Fixes: #526

@Darksonn Darksonn force-pushed the windows-void-ptrs branch from 7c4d05f to d0fae1e Compare May 1, 2025 07:44
@Darksonn Darksonn force-pushed the windows-void-ptrs branch from d0fae1e to 17bba44 Compare May 1, 2025 07:47
@Darksonn Darksonn force-pushed the windows-void-ptrs branch 2 times, most recently from ef9479c to 390b68d Compare May 1, 2025 08:14
@Darksonn Darksonn force-pushed the windows-void-ptrs branch from 390b68d to abcb2a5 Compare May 1, 2025 08:37
@Darksonn Darksonn changed the title Add cargo-check-external-types to ci Do not use windows-sys types in public API May 1, 2025
@Darksonn Darksonn force-pushed the windows-void-ptrs branch 4 times, most recently from 5d12687 to d10f87e Compare May 1, 2025 08:59
@Darksonn Darksonn force-pushed the windows-void-ptrs branch from d10f87e to 1b381e8 Compare May 1, 2025 09:03

impl SockAddrStorage {
/// Construct a new storage containing all zeros.
#[inline]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these #[inline]s?

rust:
# `check-external-types` requires a specific Rust nightly version. See
# the README for details: https://github.com/awslabs/cargo-check-external-types
- nightly-2024-06-30
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The readme mentions nightly-2025-05-04 here: https://github.com/awslabs/cargo-check-external-types?tab=readme-ov-file#how-to-use. But I assume this version will also work.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the releases page has the recent version: https://github.com/awslabs/cargo-check-external-types/releases.

matrix:
os:
- windows-latest
- ubuntu-latest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to run it on different OS? Can we do cross-OS checking?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cross-OS checking doesn't seem to work (well), -Zbuild-std can't be passed.

@Thomasdezeeuw
Copy link
Collaborator

Merging this now. @Darksonn we can resolve the question I have later.

@Thomasdezeeuw Thomasdezeeuw merged commit 795e974 into master May 24, 2025
45 checks passed
@Thomasdezeeuw Thomasdezeeuw deleted the windows-void-ptrs branch May 24, 2025 09:11
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.

Bumping windows-sys is a Semver breaking change
2 participants