Closed cpaplham closed 3 months ago
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?
Thanks, merging https://github.com/smessmer/binary-layout/pull/28 which includes these changes and adds a test on top. This will be in version 4.0.2.
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.