Skip to content

Conversation

@the-ssd
Copy link

@the-ssd the-ssd commented Dec 27, 2025

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

@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:meta Everything related to the meta-language. labels Dec 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:meta Everything related to the meta-language. cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cranelift-codegen no longer builds with no_std

1 participant