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

Unable to build using modules #28

Closed
mfpiccolo opened this Issue Nov 29, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@mfpiccolo
Collaborator

mfpiccolo commented Nov 29, 2015

I am trying to build using the latest master but a bunch of unimplemented errors now. It was working on master and when I pointed to the newest master on yaqb there was a serde compatibility issue because of quasi. I removed serde and now I am trying to get the same functionality but I am unable to compile.

I can post the code in the issue but it may just be easier to link.

Here are the two files from my try-compile branch:
https://github.com/mfpiccolo/yaqb_test/blob/try-compile/src/models/post.rs
https://github.com/mfpiccolo/yaqb_test/blob/try-compile/src/models/user.rs

Any idea why I would be getting the errors like:

error: the trait `yaqb::query_source::Queriable<(yaqb::types::Integer, yaqb::types::VarChar, yaqb::types::Nullable<yaqb::types::VarChar>)>` is not implemented for the type `models::user::User
@sgrif

This comment has been minimized.

Member

sgrif commented Nov 29, 2015

It looks like you're using nightly, not syntex. You need to specify a few things in Cargo.toml. https://github.com/sgrif/yaqb/tree/master/yaqb_codegen#using-on-nightly

@sgrif sgrif closed this Nov 29, 2015

@sgrif

This comment has been minimized.

Member

sgrif commented Nov 29, 2015

(Sorry, the instability should settle a bit on Monday when I release 0.1)

@mfpiccolo

This comment has been minimized.

Collaborator

mfpiccolo commented Nov 29, 2015

No worries. I had not seen the codegen docs yet. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment