Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive macros aren't usable unless rustorm_dao is added as a separate dependency. #31

Open
ghost opened this issue Aug 6, 2020 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented Aug 6, 2020

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.

@ivanceras
Copy link
Owner

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.

@ivanceras ivanceras self-assigned this Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant