-
Notifications
You must be signed in to change notification settings - Fork 48
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
raw-cpuid 4.0.0 depends on heavyweight serde crate #27
Comments
…yweight "serde" library in 4.0.0, see gz/rust-cpuid#27)
Hi, just for clarification what do you consider heavy-weight? You can (or should) still compile raw-cpuid for no_std environments even with serde. I'm perfectly ok with making serde optional if there is good reason for it. My change was mostly because I didn't want unnecessary complexity due to feature pollution since serde does compile just fine for no_std and we only use it for trait derivations. |
I've been having issues with serde compiling incorrectly when using this on a no_std environment. Please move it back. |
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
Thanks for reporting this. I released cpuid 5.0 on which makes serde an optional dependcy again. But it may be best to require for all dependencies to always be optional for this particular crate... @lachlansneff @ColinFinck please let me know if there are still issues with 5.0 |
Thanks for the prompt reply! |
I had a similar issue reported at rust-osdev/cargo-xbuild: rust-osdev/cargo-xbuild#10. After some investigation it seems like it is a cargo issue: rust-lang/cargo#5730 |
@phil-opp Thanks that's good to know! |
raw-cpuid is advertised as "A library to parse the x86 CPUID instruction, written in rust with no external dependencies" and until 3.1.0, this was the case.
However, the recent 4.0.0 release added a dependency to the heavyweight "serde" crate.
While that was an optional feature when introduced by @alex-mckenna in ef3a6f5, it quietly became a hard dependency in 686a7c5 by @gz
Please make "serde" optional again in a subsequent release to keep raw-cpuid a small and universal crate.
The text was updated successfully, but these errors were encountered: