[sync]: rust 2018#11067
Conversation
dvdplm
left a comment
There was a problem hiding this comment.
LGTM, just a few nits.
Thank you for caring about this stuff. Much appreciated.
| #[macro_use] | ||
| extern crate trace_time; | ||
| // needed to make the procedural macro `MallocSizeOf` to work | ||
| #[macro_use] extern crate parity_util_mem as malloc_size_of; |
There was a problem hiding this comment.
@cheme I've run into this as well in other crates. Are we using it wrong or is this a "known issue"?
There was a problem hiding this comment.
I think the crate need proc-macro = true in its manifest to work with rust 2018?
| snapshot::TestSnapshotService, | ||
| }; | ||
|
|
||
| use super::{*, super::{*, tests::*}}; |
We had a PR open that did exactly this and was really close to being finished. Maybe now's the time to pick that up and push it over the finish line? |
Can you elaborate on this? Does |
We have two different types for
Right, yeah would be cool. |
ordian
left a comment
There was a problem hiding this comment.
LGTM, feel free to merge if you want to address the bullet points in a separate PR.
Address #11061 (review)
Will not be addressed in this PR:
I think there are additional cleanups to do in the crate such:
enum_from_primitivewith a proc macro forSyncPacketTransactionStats,LightSyncand similar, because several things are named the same thing which is confusing at least to mesyncinto different crates for light and full sync