error: cannot find derive macro `Valuable` in this scope
--> valuable/examples/derive.rs:7:10
|
7 | #[derive(Valuable)]
| ^^^^^^^^
|
note: `Valuable` is imported here, but it is only a trait, without a derive macro
--> valuable/examples/derive.rs:1:5
|
1 | use valuable::Valuable;
| ^^^^^^^^^^^^^^^^^^
Those are due to that the feature valuable-derive might not have been enabled, and are fixed by adding a #[cfg(not(feature = "valuable-derive",))] around them.
How to reproduce the errors:
Example error:
Those are due to that the feature valuable-derive might not have been enabled, and are fixed by adding a #[cfg(not(feature = "valuable-derive",))] around them.