Skip to content
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

Optionally support no_std #31

Merged
merged 1 commit into from
Oct 25, 2021
Merged

Conversation

sunfishcode
Copy link
Collaborator

Add a "std" feature which is enabled by default, and enable no_std
when it is not enabled. Disable all Display and Debug features
in no_std mode.

My specific use case for this is rsix,
which has a no_std branch, and which uses the errno crate in its
libc-using backend.

Fixes #18.

Add a "std" feature which is enabled by default, and enable `no_std`
when it is not enabled. Disable all `Display` and `Debug` features
in `no_std` mode.

My specific use case for this is [rsix](https://crates.io/crates/rsix),
which has a no_std branch, and which uses the `errno` crate in its
`libc`-using backend.

Fixes lambda-fairy#18.
@sunfishcode sunfishcode reopened this Oct 24, 2021
@lambda-fairy lambda-fairy changed the title Optionally support no_std. Optionally support no_std Oct 25, 2021
@lambda-fairy
Copy link
Owner

Thanks!

The wasmtime build fails, but that's an existing issue, so let's follow up separately (#32).

@lambda-fairy lambda-fairy merged commit ffbba25 into lambda-fairy:master Oct 25, 2021
@sunfishcode sunfishcode deleted the main branch October 25, 2021 12:55
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
2 participants