Stream: git-wasmtime

Topic: wasmtime / PR #12222 Support for no_std in cranelift_code...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 27 2025 at 18:22):

the-ssd opened PR #12222 from the-ssd:cranelift-nostd to bytecodealliance:main:

Closes #1158, allows for cranelift to be used in a no_std environment, like a kernel.

There is already #9007, which stalled.

And I am at a point I think it makes sense to ask someone what do you want to be done about FxHashMap and OnceLock. There are alternative crates that implement it, like this one (also has a comparison chart).

What is left to do:

For codegen I also added a prelude file, with all imports, because it was easier this way for now. I put preludes at the bottom, because at the top, some file would break because of ///! doc comments. Should I redo it, and move them to the top, or avoid prelude fully?

view this post on Zulip Wasmtime GitHub notifications bot (Dec 27 2025 at 18:50):

the-ssd updated PR #12222.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 27 2025 at 19:00):

the-ssd updated PR #12222.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 27 2025 at 19:11):

the-ssd edited PR #12222:

Closes #1158, allows for cranelift to be used in a no_std environment, like a kernel.

There is already #9007, which stalled.

And I am at a point I think it makes sense to ask someone what do you want to be done about FxHashMap and OnceLock. There are alternative crates that implement it, like this one (also has a comparison chart).

What is left to do:

For codegen I also added a prelude file, with all imports, because it was easier this way for now. I put preludes at the bottom, because at the top, some file would break because of ///! doc comments. Should I redo it, and move them to the top, or avoid prelude fully?

Edit: prelude can be added by replacing first use of use with use crate::prelude::*;\n use instead of putting it at the bottom

view this post on Zulip Wasmtime GitHub notifications bot (Dec 27 2025 at 19:16):

the-ssd edited PR #12222:

Closes #1158, allows for cranelift to be used in a no_std environment, like a kernel.

There is already #9007, which stalled.

And I am at a point I think it makes sense to ask someone what do you want to be done about FxHashMap and OnceLock. There are alternative crates that implement it, like this one (also has a comparison chart).

What is left to do:

For codegen I also added a prelude file, with all imports, because it was easier this way for now. I put preludes at the bottom, because at the top, some file would break because of ///! doc comments. Should I redo it, and move them to the top, or avoid prelude fully?

Edit: prelude can be added by replacing first use of use with use crate::prelude::*;\n use instead of putting it at the bottom

view this post on Zulip Wasmtime GitHub notifications bot (Dec 27 2025 at 19:26):

the-ssd updated PR #12222.


Last updated: Jan 09 2026 at 13:15 UTC