Skip to content

Conversation

@HoKim98
Copy link
Contributor

@HoKim98 HoKim98 commented Feb 4, 2026

We do not need to import memfd and rustix crates if we have disabled the std feature.
This PR just excludes these packages on fiber and wasmtime if std feature is disabled.

If we don't do this, libstd.rmeta will be forcibly linked when building a package that links wasmtime in a #![no_std] environment.

@HoKim98 HoKim98 requested a review from a team as a code owner February 4, 2026 17:06
@HoKim98 HoKim98 requested review from dicej and removed request for a team February 4, 2026 17:06
@HoKim98 HoKim98 force-pushed the fix/skip-importing-rustix-if-std-feature-is-disabled branch from 7b4b714 to 8ce42d0 Compare February 4, 2026 17:07
…isabled

Signed-off-by: Ho Kim <ho.kim@ulagbulag.io>
@HoKim98 HoKim98 force-pushed the fix/skip-importing-rustix-if-std-feature-is-disabled branch from 8ce42d0 to 7879d59 Compare February 4, 2026 17:08
@alexcrichton
Copy link
Member

Thanks! Do you know if this is something we can check in CI? For example are there cfg(unix) targets in Rust where the standard library is not available?

@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants