-
Notifications
You must be signed in to change notification settings - Fork 56
Update to the latest wit-bindgen
#113
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
Update to the latest wit-bindgen
#113
Conversation
* Minor preparations for hopeful inclusion into libstd * Reexport the new `bitflags` feature
Opening as a draft to test things before publishing a new wit-bindgen. |
I've also included a monstrosity of a sed script for #112 |
sed -z -i 's/#\[unsafe(\n link_section = "\(.*\)"\n)\]/\ | ||
#[cfg_attr(feature = "rustc-dep-of-std", unsafe(link_section = "\1-in-libstd"))]\ | ||
#[cfg_attr(not(feature = "rustc-dep-of-std"), unsafe(link_section = "\1"))]\ | ||
/' $file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use wit-bindgen's --type-section-suffix
flag to add the suffix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh we actually already use it but the problem here is that it needs a different suffix depending on whether rustc-dep-of-std
is enabled or not (to have one name when depended on by libstd and another name when normally used from crates.io)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats a nasty sed script but I can't really think of a better way
Mostly looking to integrate bytecodealliance#113 into the Rust standard library.
Mostly looking to integrate #113 into the Rust standard library.
bitflags
feature