Create initial Rust wrapper structure

Generate bindings to C library with bindgen
Add github CI workflow to build Rust wrapper
This commit is contained in:
Josh Holtrop
2025-09-10 15:30:03 -04:00
parent dc421a0d4c
commit 167e76add4
14 changed files with 491 additions and 1 deletions

30
.github/workflows/rust-wrapper.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Build Rust Wrapper
# START OF COMMON SECTION
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# END OF COMMON SECTION
jobs:
build_wolfssl:
name: Build wolfSSL Rust Wrapper
if: github.repository_owner == 'wolfssl'
runs-on: ubuntu-24.04
# This should be a safe limit for the tests to run.
timeout-minutes: 10
steps:
- name: Build wolfSSL
uses: wolfSSL/actions-build-autotools-project@v1
with:
path: wolfssl
configure: --enable-all
- name: Build Rust Wrapper
working-directory: wolfssl
run: make -C wrapper/rust