Skip to content

Conversation

@orsinium
Copy link

This is the first step to support no_std. I've flattened imports (to make the next step easier), replaced std with core and alloc wherever is possible, and replaced write! with alloc-only equivalent in a few places. I also fixed some of the clippy warnings along the way in the parts of the code that I've touched.

If that's something you're interested in having upstream, I'll bring in a follow-up PR the final support for no_std, with a feature-flag propagating into dependencies.

I do this work as an experiment to add Lua support into Firefly Zero handheld game console. We're compiling apps into non-wasi wasm environment (in case of Rust, wasm-unknown-unknown) but the mainstream Lua interpreter can be used only with Emscripten JS polyfill.

@orsinium orsinium mentioned this pull request Oct 19, 2025
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.

1 participant