You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cargo-metadata depends on serde with std enabled.
Using another crate which depends on serde - even when used in a no_std context - therefore forces usage of std (related to rust-lang/cargo#5730 ), rendering it unable to compile for a thumb target.
I've ran into this issue today when trying to use the usbd-hid crate and it failed to compile because of that :(
Would it be possible to remove the dependency on cargo-metadata?
The text was updated successfully, but these errors were encountered:
Well looks like I posted too soon ...
for everyone running into this problem: the new cargo resolver already fixed that (adding resolver = "2" to Cargo.toml package section works).
It is definitely important to know, that it does not work with resolver = "1" and as that is still the default IIRC it should be mentioned somewhere to use the newer resolver.
Fortunately the MSRV is 1.51 because of minimal const generics support and that is also the version, where the new resolver is released.
cargo-metadata
depends onserde
with std enabled.Using another crate which depends on
serde
- even when used in a no_std context - therefore forces usage of std (related to rust-lang/cargo#5730 ), rendering it unable to compile for a thumb target.I've ran into this issue today when trying to use the
usbd-hid
crate and it failed to compile because of that :(Would it be possible to remove the dependency on
cargo-metadata
?The text was updated successfully, but these errors were encountered: