Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b4c0313
Closes #274: Adding FFI functions for bool, float, double, string, ve…
vshailesh Oct 6, 2025
c0e5dfb
Adding Tests for CAPI flatbuffers
vshailesh Oct 6, 2025
1f402f9
Corrected number of arguments in guest function
vshailesh Oct 6, 2025
4a27841
corrected return type in test cases, integration_test.rs
vshailesh Oct 6, 2025
2c1cea0
corrected test case
vshailesh Oct 6, 2025
e66ce6e
corrected test case
vshailesh Oct 6, 2025
cfe2c62
corrected test cases
vshailesh Oct 6, 2025
3c5acec
corrected test cases
vshailesh Oct 6, 2025
ab379d7
corrected test cases
vshailesh Oct 6, 2025
24eb8cc
format fix
vshailesh Oct 6, 2025
da42d0e
removed unnecessary imports
vshailesh Oct 6, 2025
e77c24e
Separate function for creating Uninitialized Sandbox in C-language
vshailesh Oct 7, 2025
4450a0b
resolve import errors
vshailesh Oct 7, 2025
b828616
Bump crate-ci/typos from 1.37.1 to 1.37.2 (#934)
dependabot[bot] Oct 6, 2025
afae3f6
Bump windows-sys from 0.61.1 to 0.61.2 (#939)
dependabot[bot] Oct 7, 2025
9ae84d3
Bump crate-ci/typos from 1.37.2 to 1.38.0 (#938)
dependabot[bot] Oct 7, 2025
a060875
Documentation and integration_test fixes
vshailesh Oct 7, 2025
2deadbb
Bump windows-result from 0.4.0 to 0.4.1 (#942)
dependabot[bot] Oct 8, 2025
6f750ad
Bump windows-version from 0.1.6 to 0.1.7 (#940)
dependabot[bot] Oct 8, 2025
f6eb18f
Bump crate-ci/typos from 1.38.0 to 1.38.1 (#945)
dependabot[bot] Oct 8, 2025
5df0587
Restructure guest/host error handling (#868)
ludfjig Oct 8, 2025
f66d987
Fix join github actions job (#944)
ludfjig Oct 8, 2025
666a14f
Bump wasmparser from 0.239.0 to 0.240.0 (#949)
dependabot[bot] Oct 9, 2025
6ae9059
Bump windows from 0.62.1 to 0.62.2 (#941)
dependabot[bot] Oct 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/ValidatePullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
steps:
- uses: actions/checkout@v5
- name: Spell Check Repo
uses: crate-ci/typos@v1.37.1
uses: crate-ci/typos@v1.38.1

license-headers:
name: check license headers
Expand All @@ -98,9 +98,8 @@ jobs:
if: always()
runs-on: ubuntu-latest
steps:
- name: Previous jobs succeeded
if: ${{ !(contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) }}
run: exit 0
- name: Previous jobs failed
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1
# Calculate the exit status of the whole CI workflow.
# If all dependent jobs were successful, this exits with 0 (and the outcome job continues successfully).
# If a some dependent job has failed, this exits with 1.
- name: calculate the correct exit status
run: jq --exit-status 'all(.result == "success" or .result == "skipped")' <<< '${{ toJson(needs) }}'
106 changes: 54 additions & 52 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ build-fuzzer fuzz-target:
###################

gen-all-fbs-rust-code:
for fbs in `find src -name "*.fbs"`; do flatc -r --rust-module-root-file --gen-all -o ./src/hyperlight_common/src/flatbuffers/ $fbs; done
flatc --rust --rust-module-root-file --gen-all -o ./src/hyperlight_common/src/flatbuffers/ ./src/schema/all.fbs
just fmt-apply

install-vcpkg:
Expand Down
8 changes: 1 addition & 7 deletions docs/how-to-use-flatbuffers.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# How to use FlatBuffers

> Note: the last generation of the flatbuffer code was with done with flatc version 25.2.10 (i.e., the last version as of May 1st, 2025).
> Note: the last generation of the flatbuffer code was with done with flatc version 25.9.23 (i.e., the last version as of Oct 2nd, 2025).

Flatbuffers is used to serialize and deserialize some data structures.

Expand All @@ -19,9 +19,3 @@ We recommend building `flatc` from source. To generate rust code, use
```console
just gen-all-fbs-rust-code
```

### Note about generated code

Because we invoke `flatc` multiple times when generating the Rust code, the `mod.rs` generated in `./src/hyperlight_common/src/flatbuffers` is overwritten multiple times and will likely be incorrect. Make sure to manually inspect and if necessary update this file before continuing with your changes as certain modules might be missing. After fixing `mod.rs`, you might need to re-run `just fmt`, since it might not have applied to all generated files if your `mod.rs` was invalid.

>`flatc` does support passing multiple schema files (e.g. it is possible to pass `.\src\schema\*.fbs`), so we could regenerate all the files each time a change was made, however that generates incorrect code (see [here](https://github.com/google/flatbuffers/issues/6800) for details).
Loading