Skip to content
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

feat: use rustls instead of openssl #581

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

itegulov
Copy link
Contributor

@itegulov itegulov commented Feb 6, 2025

What 💻

This PR drops openssl from dependency tree in favor of rustls. Needs matter-labs/zksync-era#3568 to be merged first and a subsequent zksync-era release to be cut after that. Opening a PR now so we don't forget about this.

Another important change in this PR is getting rid of cross. IMHO no reason to use it if we are not linking with anything other than glibc (and even that is unnecessary, see my comment in GHA workflow). Also, it is borderline unmaintained as they have been struggling to update their Docker images from ubuntu:20.04 for many years.

Why ✋

Statically linking openssl is error-prone, also anvil uses rustls over openssl too

@itegulov itegulov force-pushed the daniyar/enforce-rustls branch from 97d9097 to 89e4783 Compare February 6, 2025 03:56
@itegulov
Copy link
Contributor Author

itegulov commented Feb 6, 2025

Tested that the modified workflow works here: https://github.com/matter-labs/anvil-zksync/actions/runs/13171548653

Also, tested that x86_64/aarch64 binaries work fine with bare ubuntu:24.04 container (both --platform=linux/arm64/v8 and --platform=linux/amd64). macOS is TBD.

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.

1 participant