rustorm
rustorm copied to clipboard
Derive macros aren't usable unless rustorm_dao is added as a separate dependency.
rustorm version: 0.17 rust version: 1.45.2
Attempting to use any of the derive macros provided by rustorm (ToDao, FromDao, ToTableName, ToColumnNames) will fail to compile with the following error message: error[E0433]: failed to resolve: use of undeclared type or module `rustorm_dao`
Adding rustorm_dao = "0.5" as a dependency in Cargo.toml fixes this but since rustorm_dao is already a dependency of rustorm and this is not mentioned anywhere in the readme I am guessing this isn't supposed to be the case? If this is expected, it should probably be mentioned somewhere.
This is a known issue, since at the time of writing, i had limited knowledge on procedural macros, specially in dealing with $crate dependencies. I will try to resolve this on the next version by reexporting rustorm_dao and then use this reexported $crate:rustorm_dao where where Dao is needed.