summaryrefslogtreecommitdiff
path: root/scripts/generate_code.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/generate_code.py')
-rwxr-xr-xscripts/generate_code.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/generate_code.py b/scripts/generate_code.py
index 7902f0ed..5420ed9e 100755
--- a/scripts/generate_code.py
+++ b/scripts/generate_code.py
@@ -103,6 +103,7 @@ CPP_17_OPTS = NO_INCL_OPTS + [
"--gen-object-api",
]
RUST_OPTS = BASE_OPTS + ["--rust", "--gen-all", "--gen-name-strings"]
+RUST_SERIALIZE_OPTS = BASE_OPTS + ["--rust", "--gen-all", "--gen-name-strings", "--rust-serialize"]
TS_OPTS = ["--ts", "--gen-name-strings"]
LOBSTER_OPTS = ["--lobster"]
SWIFT_OPTS = ["--swift", "--gen-json-emit", "--bfbs-filenames", str(tests_path)]
@@ -156,6 +157,14 @@ flatc(
)
flatc(
+ RUST_SERIALIZE_OPTS,
+ schema="monster_test.fbs",
+ include="include_test",
+ prefix="monster_test_serialize",
+ data="monsterdata_test.json",
+)
+
+flatc(
options=BASE_OPTS + ["--python"],
schema="monster_test.fbs",
include="include_test",