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

Fix no_std compatibility #25

Closed
wants to merge 1 commit into from
Closed

Conversation

cpaplham
Copy link

Under certain build configurations, Rust will build all libraries listed under [dependencies] and not just those which are actually used. This change makes thiserror a dependency of the std feature so that doesn't happen.

Under certain build configurations, Rust will build all libraries listed
under `[dependencies]` and not just those which are actually used.
@smessmer
Copy link
Owner

smessmer commented Mar 28, 2024

Interesting. There is a test in the CI that runs with --no-default-features. That should disable the std feature, and then this line should enable no-std mode. The CI test passes. Can you give more info under which circumstances nostd would fail so I can amend the CI job to test for that?

@smessmer
Copy link
Owner

smessmer commented Apr 13, 2024

Thanks, merging #28 which includes these changes and adds a test on top. This will be in version 4.0.2.

@smessmer smessmer closed this Apr 13, 2024
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.

2 participants