You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add test that fails due memory leaking when host function error occurs
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* Update FlatBuffer schema and generation process
- Add all.fbs to include all schema files in one place
- Restructure function_call_result.fbs to use Result-like union
- Add HostError variant to ErrorCode enum in guest_error.fbs
- Update flatbuffer generation command in Justfile to use all.fbs
- Update documentation for new generation process
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* Regenerate FlatBuffer generated code
Update all generated Rust code based on the new schema definitions.
This includes new types for error handling and result structures.
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* Refactor error handling types and utilities
- Update function_types.rs to handle Result-like return values
- Simplify guest_error.rs wrapper implementation
- Update util.rs for new generated types
- Update mod.rs for new generated types
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* Remove obsolete guest error handling
- Remove guest_err.rs from hyperlight_host (replaced by new error handling)
- Remove guest_err.rs from hyperlight_guest_bin (replaced by new error handling)
- Update func/mod.rs to remove obsolete import
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* Update host-side error handling
- Update initialized_multi_use.rs to use new Result-like error handling
- Update mem/mgr.rs to handle host function errors properly
- Update sandbox/outb.rs for new error propagation pattern
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* Update guest-side error handling
- Update guest/host_comm.rs to use new Result-like return values
- Update guest_bin/call.rs to properly handle host function errors
- Update guest_bin/lib.rs to remove obsolete error handling import and make GUEST_HANDLE public (for use in C-API)
- Update guest_capi/error.rs to support new error types
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* Fix up test to work with new error handling
Update sandbox_host_tests.rs to use the new Result-like error handling pattern.
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* Update Cargo dependencies
Update Cargo.lock and Cargo.toml files to reflect the dependency changes
needed for the new error handling implementation.
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* Fix test so it passes
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* First round of PR feedback
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* Unignore forgotten test
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
* Update flatc version in docs
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
---------
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/how-to-use-flatbuffers.md
+1-7Lines changed: 1 addition & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# How to use FlatBuffers
2
2
3
-
> 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).
3
+
> 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).
4
4
5
5
Flatbuffers is used to serialize and deserialize some data structures.
6
6
@@ -19,9 +19,3 @@ We recommend building `flatc` from source. To generate rust code, use
19
19
```console
20
20
just gen-all-fbs-rust-code
21
21
```
22
-
23
-
### Note about generated code
24
-
25
-
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.
26
-
27
-
>`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).
0 commit comments