Skip to content

Allow rquickjs-core to build with no_std #455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jprendes
Copy link

@jprendes jprendes commented Apr 23, 2025

This PR allows rquickjs-core to build with no_std.

  • The rquickjs-sys crate is made unconditionally no_std.
  • The rquickjs-core crate can be made no_std by disabling the new std feature, which is enabled by default.
  • The FileResolver in the loader module had to be disabled building with no_std.
  • The relative-path dependency had to be vendored in and edited to be no_std compatible. When the upstream changes at Allow building with no_std udoprog/relative-path#64 are merged, we can go back to using the upstream dependency directly. Upstream now supports no_std

Fixes #303

@jprendes
Copy link
Author

@DelSkayn PTAL :-)

@jprendes
Copy link
Author

jprendes commented May 1, 2025

Fixed formatting, sorry about that!

@jprendes jprendes force-pushed the no_std branch 2 times, most recently from f8d1885 to f93a456 Compare May 3, 2025 09:06
@jprendes
Copy link
Author

jprendes commented May 3, 2025

@DelSkayn PTAL :-)

@jprendes
Copy link
Author

@DelSkayn PTAL :-)

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.

Support no_std targets
1 participant