Skip to content

Cargo feature for WASIp3 - #142

Open
adamrk wants to merge 3 commits into
bytecodealliance:mainfrom
adamrk:abk/p3-feature-base
Open

Cargo feature for WASIp3#142
adamrk wants to merge 3 commits into
bytecodealliance:mainfrom
adamrk:abk/p3-feature-base

Conversation

@adamrk

@adamrk adamrk commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Add p2 and p3 features to target WASIp2 and WASIp3. These are temporary for developing the p3 backend and will eventually be removed in favor of using target_os (see plan).

(Probably this should be merged into a long running branch instead of main, but I can't create one so just targeting main for now).

Addresses #144

@adamrk

adamrk commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Still investigating the test failure, but I was able to reproduce it on main so it's likely some existing flakiness.

@adamrk

adamrk commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Fix for the test here: #143

@pchickey pchickey mentioned this pull request Sep 2, 2026
12 tasks
@adamrk
adamrk force-pushed the abk/p3-feature-base branch from 170b21b to ea32edf Compare September 3, 2026 14:24
Comment thread build.rs
Comment on lines +3 to +10
fn main() {
cfg_aliases! {
// TODO https://github.com/bytecodealliance/wstd/issues/147: Swap these
// to use `target_env` instead.
p2: { feature = "p2" },
p3: { feature = "p3" },
}
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Saw this handy aliasing in #127 which can let us switch to using the target without a big diff. Not sure what our general philosophy is about pulling in entire crates for such little things though. I left it as a separate commit so it's easy to revert if we don't want it.

@adamrk
adamrk requested a review from pchickey September 3, 2026 14:26
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