Skip to content

Conversation

zhfish
Copy link
Contributor

@zhfish zhfish commented Oct 29, 2023

I added dependencies to Cargo, ensuring that OpenSSL is correctly included with features during the compilation of musl, eliminating the need to separately handle OpenSSL for musl. We still find musl necessary because handling dependencies can be quite challenging.
#300

add openssl's features for musl
@yujqiao
Copy link
Member

yujqiao commented Oct 29, 2023

Not sure it's the right thing to do. Vendored openssl has various drawbacks e.g. it can't respect the system root certificate, and it doesn't get updated so it's not as secure. Also I wonder if this impact binary size

@zhfish
Copy link
Contributor Author

zhfish commented Oct 29, 2023

My system is Rocky8, and the Glib version is 2.28, which is very inconvenient to upgrade. Although the size of the binary file has been increased, I believe it is well worth it

@yujqiao
Copy link
Member

yujqiao commented Nov 1, 2023

In that case, can you try only vendor openssl for musl release?

@zhfish
Copy link
Contributor Author

zhfish commented Nov 2, 2023

You're right. I've made the modifications, enabling vendor dependencies exclusively for musl compilation.

@yujqiao yujqiao merged commit 65b27f0 into rathole-org:main Nov 5, 2023
@Arnie97 Arnie97 mentioned this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants