Skip to content
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

Add no_std feature and make it default for win_etw_provider #35

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

NateD-MSFT
Copy link
Contributor

This crate is very close to being no_std as it is. At this point the only portion that cannot be done in no_std is, appropriately enough, the std_support module.

This change adds a no_std feature, makes it default, and makes minor tweaks to maximize no_std compatibility (using widestring's "alloc" feature, updating the IP structs to their core versions, adding a few references to the alloc crate.)

Not deeply tested but appears to compile and work when added to another project with a global allocator.
@NateD-MSFT
Copy link
Contributor Author

Ah, looks like the test runners are pinned to 1.68.0, which is before core stabilized SocketAddrV4, etc. (I believe this was fairly recent). Is there a reason the test runners need to be pinned to 1.68.0 specifically?

Copy link
Contributor

@sivadeilra sivadeilra left a comment

Choose a reason for hiding this comment

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

Looks great!

@sivadeilra sivadeilra merged commit bfd5192 into microsoft:main Jul 2, 2024
5 checks passed
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.

2 participants