Skip to content

build(d7s): use ring crypto provider instead of aws-lc-rs - #128

Merged
robertazzopardi merged 2 commits into
mainfrom
build/ring-crypto-provider
Nov 11, 2026
Merged

robertazzopardi merged 2 commits into
mainfrom
build/ring-crypto-provider

Conversation

@robertazzopardi

Copy link
Copy Markdown
Owner

Switches d7s's rustls crypto provider from the default aws-lc-rs to ring, dropping aws-lc-sys from the dependency graph.

Why

aws-lc-sys's C build script was the slowest unit in a clean build (~16s) and sat on the critical path.

Changes

  • crates/d7s/Cargo.toml: rustls with default-features = false, features = ["ring", "std", "tls12", "logging"]
  • crates/d7s/src/db/tls.rs: aws_lc_rs::default_provider() → ring::default_provider()
  • Cargo.lock: aws-lc-rs / aws-lc-sys removed

Results (8 cores, sccache warm)

  • Clean cargo build --workspace: 48.4s → 42.6s
  • Cold-cache / CI / release builds should gain more (not measured)

Testing

  • cargo test --workspace --all-features --all-targets passes (13 ignored need live DBs)
  • clippy with CI flags clean

Notes

  • Not tested against live MySQL/Postgres TLS. mysql_async uses ClientConfig::builder(), which relies on exactly one provider being compiled in; ring is now the only one.
  • Loses aws-lc's default post-quantum key exchange (prefer-post-quantum). Standard TLS 1.2/1.3 unaffected.

robertazzopardi and others added 2 commits November 11, 2026 21:08
Drops aws-lc-sys, whose C build script was the slowest unit in a clean
build (~16s) and on the critical path.
@robertazzopardi
robertazzopardi merged commit 05550dd into main Nov 11, 2026
7 checks passed
@robertazzopardi
robertazzopardi deleted the build/ring-crypto-provider branch November 11, 2026 21:47
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