host_env: keep rustls off the rustls-free ssl surface - #8727
youknowone wants to merge 2 commits into
Conversation
ssl is MemoryBIO, constants, OID, and ALPN. ssl-rustls is the rustls engine. Drop the wasm32 rustls-pki-types web dep; the browser crate already enables that feature. Assisted-by: Claude
Assisted-by: Claude
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe SSL feature split moves rustls dependencies behind ChangesSSL feature separation
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The SSL feature split preserves rustls support for the stdlib and browser paths while allowing rustls-free SSL functionality elsewhere. No actionable merge risk was identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
host_env'ssslfeature compiled the rustls engine and, onwasm32-unknown-unknown, also enabledrustls-pki-typeswebsoUnixTime::nowexisted. Thatwebfeature pullsweb-time→ wasm-bindgen. A wasmtime host cannot satisfy__wbindgen_placeholder__, so any guest that usedhost_envsslwithout a JS runtime failed to instantiate.stdlib already distinguishes rustls-free
sslfromssl-rustls. This matches that split inhost_env:ssl— MemoryBIO, constants, OID, ALPN, hostname checks. No rustls.ssl-rustls— the rustls engine.The blanket wasm32
rustls-pki-typeswebdependency is gone. The browser crate already enables that feature itself, which is the crate that actually has a JS clock.Test plan
cargo check -p rustpython-host_env --features sslcargo check -p rustpython-host_env --features ssl-rustlsAssisted-by: Claude
Summary by CodeRabbit