Repository navigation
[6x Migration] cryptography - #7992
DerThorsten merged 3 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I looked into the wasm64 failure (
|
|
Correction to my previous comment, after digging further. There are two separate wasm64 issues, and the hard error is not OpenSSL's fault: 1.
2. OpenSSL wasm32 is fine; both points are toolchain/dependency fixes outside this recipe. Should I open separate PRs for (1) bumping libc in rust-nightly and (2) the openssl wasm64 target, or would you rather handle the toolchain side yourself? |
|
→ The fix is to rebuild recipes_native/rust-nightly with std's libc bumped to ≥ 0.2.191. After that, cryptography (and any other wasm64 Rust package whose final link also pulls in a C poll user) should link. Nothing in this recipe can work around it cleanly. try that, do it in this PR that we have a proof that its working |
…ssl; more cryptography tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Done, both wasm64 fixes are now in this PR, and cryptography builds and passes on wasm64 locally. 1.
2. OpenSSL
cryptography: the pytester test now also does real work: Fernet round trip, SHA-256 + AES-GCM, RSA keygen/sign/verify (BIGNUM, would trap with the 32-bit Local results (macOS, CI-like local channel):
CI builds the changed 🤖 Generated with Claude Code |
…er fetchable; it already has libc 0.2.191) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Update: CI failed to fetch the pinned rust rev ( Now pinned to the branch head Rebuilt locally from a fresh fetch: rust-nightly builds and passes 🤖 Generated with Claude Code |
Moves
cryptographyfromrecipes/recipes_emscriptentorecipes/recipes_wasm.Changes for emscripten-6x:
python→python-dev, the same as the other migrated Python recipes.openssl→libopenssl-static, the static OpenSSL output on 6x.cffiis dropped from host. It is still in build (crossenv) and in run, and thecffi 2.0.0variant pin has no 6x build.pip install:MATURIN_PYTHON_SYSCONFIGDATA_DIRfor the target, derived from$target_platform, the same as the other maturin recipes.-I${PREFIX}/include/python${PY_VER}toCFLAGS. Thecryptography-cfficrate compiles the generated_openssl.cwith thecccrate, which otherwise fails with'Python.h' file not found.generic-testingtest. The existing pytester test (importsfernet,hazmat,x509, …) is unchanged.Tested locally with
./build_wasm.sh recipes/recipes_wasm/cryptography wasm32. All tests pass: pytester and generic-testing. Lint passes.🤖 Generated with Claude Code