-
Notifications
You must be signed in to change notification settings - Fork 72
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
Enable std/alloc without other features like chrono #550
Comments
Is is already the case. The only things enabled by alloc and std are the features of the same name in serde. For the other crates the features use "?" to not pull new dependencies in. serde_with/serde_with/Cargo.toml Lines 29 to 48 in a079e9c
|
Unfortunately this doesn't seem to be working though.
fails to compile with:
|
This is caused by rust-lang/cargo#10801 and pinning chrono to a single version. Pinning to a specific version works very poorly, and you will run into more problems like this. If you only add You should drop the version pinning of chrono. Alternatively, you can use a different version of |
I can't unpin chrono right now due to this issue.
Thanks a lot for the clarification. |
If you're fixed to an incompatible version of chrono or just want to save on code size, you don't really want any of that enabled. You might still want to use the utils for (de-)serializing things like
Vec
s though.The text was updated successfully, but these errors were encountered: