serde-rs / serde-rs.github.io

https://serde.rs
Creative Commons Attribution Share Alike 4.0 International
22 stars 97 forks source link

Explain that lib.rs and main.rs and test.rs need separate #[macro_use] extern crate serde_derive #27

Closed dtolnay closed 7 years ago

dtolnay commented 7 years ago

They are compiled separately and the #![feature(proc_macro)] from main.rs has no effect on lib.rs and vice versa.

dtolnay commented 7 years ago

Done in 6ff05f8183591d8e144f4936c7e7bd11c76f9349.