-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 outside of crate #5
Comments
Update: I could not get master to build locally on all three releases because of two libc mismatch types:
I had to change line 276 of connection/mods.rs to use u64
And I had to comment out drop for PgString on line 317-323. This is probably something that has to be solved on Cargo but in the mean time the repo can build by making the changes above. |
I think it's because I have a wildcard dependency on |
Also sorry for the delay, I wasn't watching issues on this repo and didn't actually expect one to be opened! |
@mfpiccolo Fixed, sorry again for the delay. If you're actually trying to use this, let me know if I can help at all. I'm getting to the point where I should write up a usage guide and some docs, and having someone less familiar w/ the internals would be helpful for that. |
@sgrif Thanks for pushing up the fix for the libc stuff. That is weird because I tried pulling down both yaqb and pq-sys and fixing the libc to '0.2.*' but was unable to get it to build. Not sure what I did wrong but this change worked. Also, did you release pq-sys 0.2.0 to crates.io without pushing the commit to github? I am guessing that you just locked the libc version there as well. As for using the project, I am interested because I am writing a book on Rust for Manning that is focusing on learning Rust for programmers that only know high level languages (Ruby, JS, Python, etc). Mostly focusing on web stuff. Plus I really like Rust and want to start building a background job system in Rust for my consultancy. Is this project going to be like AREL or will it also have the higher abstraction of an ActiveRecord-like ORM as well? I would definitely be interested in helping out with the documentation or development. |
Yes on both. Just pushed.
It's intended to be somewhere in between. Ultimately this is meant to be your persistence layer, but it's trending somewhere closer to the data mapper pattern. There's a lot of features that Active Record has that I don't think belong on the model layer, or are better handled by the database. I've been porting crates.io to use this as something to give some amount of focus to get to 0.1. You can see where it's been heading here (note: there's a lot of noise and mess on that branch as well, I'm going to scrap 100% of that code if I ever do actually open a PR to port them over. This is just so I have a real world app to play with). Off the top of my head WRT to changes from Active Record, the following come to mind:
Wanna shoot me an email and we can coordinate further? It's on my github profile. |
I was trying to set up another repo to play around with yaqb in another crate but I was unable to build the crate because of a cargo issue rust-lang/cargo#2064.
The error I am getting I think is due to conflicting libc's.
Are you able to use the crate as a dependency?
The text was updated successfully, but these errors were encountered: