-
Notifications
You must be signed in to change notification settings - Fork 67
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
Publishing on Crates.io? #28
Comments
Hi @sagebind, your proposal sounds awesome!!! A straightforward approach is to use the depdencies on crates.io instead of our forks; then we can publish MesaLink on crates.io; although this comes with a cost that users wouldn't be able to customize ciphersuites. |
Submitting patches to the upstream crates to avoid using forks does seem like the most ideal way, though publishing the MesaLink forks with a |
@sagebind rust-lang/cargo#7237 seems promising. |
Just published MesaLink on crates.io: https://crates.io/crates/mesalink This version is built with the
I can bring them back once rust-lang/cargo#7237 is merged. |
That's great news, and a good first step! That version isn't sufficient for curl (it needs Also, it seems like the version you published does not include TLSv1.3 support. |
Just yanked 1.0.0 and added 1.0.0-cratesio with |
That's great! I just tried it out and confirmed that it appears to be working well when integrated with the curl crate. Since curl only cares about server authentication it should be fine for this use case, but I would warn users about client auth config being ignored if it isn't resolved soon. Though if rust-lang/cargo#7237 does arrive soon, then we could have just added MesaLink as a Git dependency of |
MesaLink is almost useable now from |
@sagebind No problem! |
I'm leaving this issue open for a while until alexcrichton/curl-rust#280 is merged. |
I imagine that PR can't be merged until after the recent changes are published to crates.io. |
No problem. |
This is more of a question than a feature request. Currently MesaLink is not available on crates.io, which makes it difficult to use within a Rust application. I know that native Rust code is better to use Rustls directly, but I'm in a bit of a unique situation.
I am interested in adding to the
curl-sys
crate on crates.io the ability to statically link to MesaLink as the TLS implementation; this would allow Rust applications to use a statically linked libcurl that in turn uses a statically linked MesaLink for its TLS implementation. This would be a pretty big win for Rust applications that make use of curl (includingcargo
itself) as it eliminates the OpenSSL dependency and gains the safety of MesaLink + Rustls.Doing this as-is is a challenge for several reasons:
I see only a few ways of making this possible:
mesalink-rustls
and so on).mesalink-sys
crate that builds MesaLink inside a build script. (Awkward running Cargo inside a build script inside Cargo...)I am interested to hear of better solutions, or if there is any interest in publishing to crates.io.
The text was updated successfully, but these errors were encountered: