Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUnable to build outside of crate #5
Comments
This comment has been minimized.
|
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. |
This comment has been minimized.
|
I think it's because I have a wildcard dependency on |
This comment has been minimized.
|
Also sorry for the delay, I wasn't watching issues on this repo and didn't actually expect one to be opened! |
sgrif
closed this
in
1f4227f
Nov 21, 2015
This comment has been minimized.
|
@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. |
This comment has been minimized.
|
@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. |
This comment has been minimized.
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. |
mfpiccolo commentedNov 16, 2015
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?