You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rust 1.30: importing derive macro with use works or fails depending on whether unrelated dependency is present #55386
Using Rust 1.30 it is possible to bring macros into scope using use instead of #[macro_use]. I am therefore (perhaps a bit over-zealously) trying to get rid of all instances of #[macro_use] in my crates, when I hit upon what seems to be a strange edge case regarding the following bit of code:
ron enables serde's serde_derive feature which reexports the derive macros. If you stop depending on ron, that feature stops being activated. You can either directly depend on the serde_derive crate or enable the feature yourself: https://docs.rs/crate/ron/0.4.0/source/Cargo.toml.orig.
Activity
sfackler commentedon Oct 26, 2018
ron enables serde's
serde_derivefeature which reexports the derive macros. If you stop depending on ron, that feature stops being activated. You can either directly depend on the serde_derive crate or enable the feature yourself: https://docs.rs/crate/ron/0.4.0/source/Cargo.toml.orig.