Closed ShiromMakkad closed 5 days ago
@ShiromMakkad I will look how to use rustls instead of openssl. I also had some problems to make releases due this lib in the past, I'm open to change it indeed.
About the network communication, it's to get images on markdown in case it have it. I need to think a way to ship this as a optional feature if the user don't want it. Not sure how now.
I would look at reqwest's Cargo.toml: https://github.com/seanmonstar/reqwest/blob/master/Cargo.toml or rathole's Cargo.toml if you want to see a binary: https://github.com/rapiz1/rathole/blob/main/Cargo.toml for how to implement the optional feature support.
Also, I think that the rustls implementation should be the default. I think it's better from a security perspective, but some will prefer openssl due to its widespread usage. However, for this repo, since you're just using it to fetch images, I'd prefer the option that's easier to distribute, which is rustls, as the default. Or you could just remove openssl entirely, up to you.
@ShiromMakkad can you try the version https://github.com/guilhermeprokisch/see/releases/tag/v0.5.1 now?
I just dropped openssl and explicit put rustls as a feature to reqwest.
It's still failing after running cargo install --git https://github.com/guilhermeprokisch/see
. Looking at the Cargo.lock
, openssl-sys
is still a dependency and is being pulled in by reqwest
. I think both the native tls and rustls features are on.
You might have to do reqwest = { version = "0.12.7", features = ["blocking", "rustls-tls", "charset", "http2", "macos-system-configuration"], default-features = false }
and then check the Cargo.lock
.
Unfortunately you can't disable one default feature: https://github.com/rust-lang/cargo/issues/3126
I used to have a musl compilation option that I guess should be independent of the glibc but one my decencies also not working with that option so for now I disable, I will try to fix that but should take a while.
@ShiromMakkad try the v0.5.2 now https://github.com/guilhermeprokisch/see/releases/tag/v0.5.2, please
Works! Thanks
Hi, I'm trying to install
see
but it fails on OpenSSL:I'm guessing it's because of an incompatible openssl version, but I can't install a different one due to being on a work laptop. I also can't use precompiled binaries because my installed glibc version is older than 2.27. Can rustls be used instead? If openssl is just used for reqwest, they have support for rustls. Also, why does this need to communicate over the network? Can I just disable that?