-
Notifications
You must be signed in to change notification settings - Fork 152
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
serde feature is incompatible with no_std #109
Comments
Thanks. What's your opinion on the feature detect approach to no-std that indexmap uses? |
I think that's mostly fine. Although I'm not sure how you could pass that on to serde. |
I think in general this is not possible given I'm also pretty sure that interacting with dependency resolution from within a build script is not possible (and doesn't seem very viable to me in general). |
Don't tell me this is real????? I haven't fully tested the no_std support for my crate yet (or rather how std behaves then), but that would be horrible. |
I believe the main cargo bug on mixed features is rust-lang/cargo#2589. The detected |
Found it afterall: rust-lang/cargo#3494 @cuviper You are right, that would be an interesting workaround. I'm sure there are some pitfalls though... |
I think we can solve this with a new feature like serde-no-std, subset of current serde feature |
The
serde-1
feature is still always compiled with its std feature, meaning that indexmap's serde feature is not no_std compatible.The text was updated successfully, but these errors were encountered: