hobofan / ambassador

Delegation of trait implementations via procedural macros
Apache License 2.0
251 stars 13 forks source link

Document need for #[macro_use] for traits in modules #19

Open hobofan opened 4 years ago

hobofan commented 4 years ago

Follow up to https://github.com/hobofan/ambassador/issues/18#issuecomment-577470683.

There should be a part in the README that specifies the need for #[macro_use if you want to use traits across modules.

Would also be interesting to know if we can add a compile-time check if the macro is available (probably not, as it's really early in the compilation), and emit a error message with the most common pitfalls.