Skip to content

Commit af6c1a9

Browse files
committed
[flatbuffer] updated flatbuffer schema to remove host_function_*
Because we no longer need to serialize those structures, I updated our flatbuffer schema. Signed-off-by: danbugs <[email protected]>
1 parent 1d938f2 commit af6c1a9

14 files changed

+58
-867
lines changed

docs/how-to-use-flatbuffers.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# How to use FlatBuffers
22

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).
4+
35
Flatbuffers is used to serialize and deserialize some data structures.
46

57
Schema files are used to define the data structures and are used to generate the code to serialize and deserialize the data structures.

src/hyperlight_common/src/flatbuffer_wrappers/function_types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ impl TryFrom<&ReturnValue> for Vec<u8> {
710710
&mut builder,
711711
&hlsizeprefixedbufferArgs {
712712
value: Some(val),
713-
size_: v.len() as i32,
713+
size: v.len() as i32,
714714
},
715715
)
716716
};

src/hyperlight_common/src/flatbuffer_wrappers/host_function_definition.rs

-160
This file was deleted.

src/hyperlight_common/src/flatbuffer_wrappers/host_function_details.rs

-150
This file was deleted.

src/hyperlight_common/src/flatbuffer_wrappers/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,4 @@ pub mod guest_error;
2121
pub mod guest_log_data;
2222
/// cbindgen:ignore
2323
pub mod guest_log_level;
24-
/// cbindgen:ignore
25-
pub mod host_function_definition;
26-
/// cbindgen:ignore
27-
pub mod host_function_details;
2824
pub mod util;

src/hyperlight_common/src/flatbuffer_wrappers/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl FlatbufferSerializable for &[u8] {
8282
Fbhlsizeprefixedbuffer::create(
8383
builder,
8484
&FbhlsizeprefixedbufferArgs {
85-
size_: self.len() as i32,
85+
size: self.len() as i32,
8686
value: Some(vec_offset),
8787
},
8888
)

0 commit comments

Comments
 (0)