add support for time::Time#43
Conversation
|
Thanks for the PR! I'm curious why you didn't use the
Could be because |
|
@finnbear I've addressed your review. Do you think I should add support for |
|
Thanks! As far as I'm personally concerned, there is no need to wait for implementing all types of a crate before merging any given PR. This PR looks good to me! 👍 But I want to here @caibear's opinion on supporting the
Only room for improvement that I can see is to make a macro to define a limited-range integer, such as |
|
Hey @finnbear (and @caibear as well XD), speaking about macro, have you ever considered adding some internal proc-macro. Like |
|
Thank you for your review. I add a |
We have been considering using bitcode's derive macro on remote types by running it on a copy of the remote type declaration but replacing the local type with the remote type in the macro's output. This would allow implementing Encode/Decode easily on any type with all public fields such as The main roadblock is that currently with 0.6, |
Part of #37, I would like your opinion about this approach @finnbear. Thank you!
I move out
Nanosecondtodatetimeso later it can be reused by other crate (for example #39)I am not sure why but this line throw an error:
assert!(crate::decode::<Time>(&crate::encode(&(23, 59, 59, 999_999_999))).is_ok());whenpopulatenanosecond. Could you check for me if there are any typo here :/ That is so weird