Rust wrapper: update build.rs to support cross-compiling and bare-metal targets#10031
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the wolfssl-wolfcrypt Rust wrapper build script to better support cross-compiling—especially bare-metal RISC-V targets—by improving include/lib discovery and bindgen clang target configuration.
Changes:
- Add
WOLFSSL_PREFIX-based include/lib discovery with fallback to in-tree builds. - Configure bindgen with
--target(and optional sysroot include hints) for*-none-elfcross-compiles. - Update README with build notes for
WOLFSSL_PREFIXand cross-compiling.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| wrapper/rust/wolfssl-wolfcrypt/build.rs | Adds prefix/in-tree path discovery, bare-metal target mapping + sysroot detection, and more conditional link behavior. |
| wrapper/rust/wolfssl-wolfcrypt/README.md | Documents WOLFSSL_PREFIX and basic RISC-V cross-compiling usage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
retest this please (wolfSSL error: tcp bind failed |
|
retest this please (hudson.AbortException: script returned exit code 2) |
|
retest this please (Timeout waiting for agent to come back) |
|
retest this please (build results removed) |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
retest this please (FAIL: scripts/ocsp-stapling_tls13multi.test) |
Description
Rust wrapper: update build.rs to support cross-compiling and bare-metal targets
Testing
Built Rust crate for riscv32 and riscv64 targets.
Checklist