2025-09-10 15:30:03 -04:00
|
|
|
# wolfSSL Rust Wrapper
|
|
|
|
|
|
2025-12-12 15:23:45 -05:00
|
|
|
The wolfSSL Rust wrapper currently consists of a single Rust crate named
|
2025-12-15 15:22:44 -05:00
|
|
|
`wolfssl-wolfcrypt`.
|
|
|
|
|
The `wolfssl-wolfcrypt` crate is a Rust wrapper for the wolfCrypt cryptographic
|
|
|
|
|
algorithms portion of the wolfSSL C library.
|
2025-12-12 15:23:45 -05:00
|
|
|
|
2025-12-15 15:22:44 -05:00
|
|
|
## Locally building and testing the wolfSSL Rust Wrapper
|
2025-09-10 15:30:03 -04:00
|
|
|
|
|
|
|
|
First, configure and build wolfssl C library.
|
|
|
|
|
|
|
|
|
|
Then build the wolfssl Rust wrapper with:
|
|
|
|
|
|
|
|
|
|
make -C wrapper/rust
|
|
|
|
|
|
2025-09-15 11:10:30 -04:00
|
|
|
Run tests with:
|
|
|
|
|
|
|
|
|
|
make -C wrapper/rust test
|
|
|
|
|
|
2025-09-10 15:30:03 -04:00
|
|
|
## Repository Directory Structure
|
|
|
|
|
|
|
|
|
|
| Repository Directory | Description |
|
|
|
|
|
| --- | --- |
|
|
|
|
|
| `/wrapper/rust` | Top level container for all Rust wrapper functionality. |
|
2025-12-12 15:23:45 -05:00
|
|
|
| `/wrapper/rust/wolfssl-wolfcrypt` | Top level for the `wolfssl-wolfcrypt` library crate. |
|
|
|
|
|
| `/wrapper/rust/wolfssl-wolfcrypt/src` | Source directory for `wolfssl-wolfcrypt` crate top-level modules. |
|