-
Notifications
You must be signed in to change notification settings - Fork 193
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
zeromq-src #257
Comments
Something like this? |
Yes, but here for this crate |
The crate I linked is compatible with this lib, so it would be trivial to add support. |
@jean-airoldie I think there could (should?) probably be a shared I've tried to explain this review how this might work out. |
I do agree with this approach. It might be interesting to create a new repo entirely. It should probably be named The approach I went with was to use a In all cases I would be interested in helping maintain such a crate since I have a couple applications that would depend on it. |
@jean-airoldie Thanks, Jean. How about you create a PR to rust-zmq that adds compile-from-src support and see what rust-zmq maintainers say to that? My motivation is that I would like to see |
I just not convinced that such a crate should live here as this repo is not as active as I would like. If I have to wait several months for my PRs to be reviewed and merged its no good. That's why I'm interested to see what @rotty thinks. |
Why would the src-crate have to live here? Couldn't you publish your zeromq-src crate at crates.io like openssl does and use that crate here and where ever it is needed/useful? Where the repo for this zeromq-src lives is not so interesting. I assume that you and @rotty and others will contribute if necessary. It seems easy to set up and probably does not need much maintenance except for the occasional src-update |
Right this makes a lot of sense. I did not think about making the src and sys crate separate. I am personally using the library from the master branch since I submit occasional PRs, so that would require little bit of maintenance in the form of occasion version bumps. |
Alright, so I made |
This will be resolved when #267 lands, which is almost ready. |
PR #267 has been merged, so this should be resolved now. |
I suggest to follow the example of rust-openssl to build the library from source if needed or when the developer requests it.
rust-openssl has a crate feature 'vendored' which gets the openss source code by using the openssl-src crate.
https://github.com/sfackler/rust-openssl/blob/master/openssl-sys/Cargo.toml#L15
Then
./configure --prefix=OUTDIR/... && make && make install
is run.Afterwards the openssl libraries are available in OUTDIR/...
The right compiler is found using the CC crate.
This would enable zeromq to be used when e.g. cross-compiling to e.g. Android without struggle of the developer.
Currently
cargo build --target=
requires the developer to build libzmq for that target beforehand. By supporting building from from we could avoid this.The text was updated successfully, but these errors were encountered: