diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..f6e3bc92 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,9 @@ +[net] +git-fetch-with-cli = true + +[target.wasm32-wasi] +rustflags = [ + "-Clink-arg=--export-table", + "-Clink-arg=--export=malloc", + "-Clink-arg=--export=free", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 00000000..da7e692a --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,22 @@ +[workspace] +exclude = ["a32nx"] + +members = [ + "build-a321neo/src/wasm/systems/a320_systems", + "build-a321neo/src/wasm/systems/a320_systems_wasm", + "build-a321neo/src/wasm/systems/a320_hydraulic_simulation_graphs", + "fbw-common/src/wasm/systems/systems", + "fbw-common/src/wasm/systems/systems_wasm", +] + +[profile.release] +lto = true +strip = true + +[profile.test] +# We enable some basic optimization to prevent stack overflows during testing (flybywiresim/a32nx#7631) +# However, if this interferes with your ability to debug locally you can disable it here +opt-level=1 +lto = false +debug-assertions=true +debug=true \ No newline at end of file diff --git a/hsim-a318ceo/src/base/lvfr-horizonsim-airbus-a318-ceo/SimObjects/Airplanes/A318ceoCFM/Panel/module.json b/hsim-a318ceo/src/base/lvfr-horizonsim-airbus-a318-ceo/SimObjects/Airplanes/A318ceoCFM/Panel/module.json deleted file mode 100644 index 6e00f140..00000000 --- a/hsim-a318ceo/src/base/lvfr-horizonsim-airbus-a318-ceo/SimObjects/Airplanes/A318ceoCFM/Panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"8129fb4190c0a0e69388a460964993fb77c76f41d8cbdea492c1e501bd63ef85f2c387faf80b9228ccb709a36a0f2a53c97b820747b016eb6338cfa3be35a6e3"} diff --git a/hsim-a318ceo/src/base/lvfr-horizonsim-airbus-a318-ceo/SimObjects/Airplanes/A318cjCFM/Panel/module.json b/hsim-a318ceo/src/base/lvfr-horizonsim-airbus-a318-ceo/SimObjects/Airplanes/A318cjCFM/Panel/module.json deleted file mode 100644 index 6e00f140..00000000 --- a/hsim-a318ceo/src/base/lvfr-horizonsim-airbus-a318-ceo/SimObjects/Airplanes/A318cjCFM/Panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"8129fb4190c0a0e69388a460964993fb77c76f41d8cbdea492c1e501bd63ef85f2c387faf80b9228ccb709a36a0f2a53c97b820747b016eb6338cfa3be35a6e3"} diff --git a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoCFM/Panel/module.json b/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoCFM/Panel/module.json deleted file mode 100644 index 6e00f140..00000000 --- a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoCFM/Panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"8129fb4190c0a0e69388a460964993fb77c76f41d8cbdea492c1e501bd63ef85f2c387faf80b9228ccb709a36a0f2a53c97b820747b016eb6338cfa3be35a6e3"} diff --git a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoCFMSL/Panel/module.json b/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoCFMSL/Panel/module.json deleted file mode 100644 index 6e00f140..00000000 --- a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoCFMSL/Panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"8129fb4190c0a0e69388a460964993fb77c76f41d8cbdea492c1e501bd63ef85f2c387faf80b9228ccb709a36a0f2a53c97b820747b016eb6338cfa3be35a6e3"} diff --git a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoCFM_acj/Panel/module.json b/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoCFM_acj/Panel/module.json deleted file mode 100644 index 6e00f140..00000000 --- a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoCFM_acj/Panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"8129fb4190c0a0e69388a460964993fb77c76f41d8cbdea492c1e501bd63ef85f2c387faf80b9228ccb709a36a0f2a53c97b820747b016eb6338cfa3be35a6e3"} diff --git a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoIAE/panel/module.json b/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoIAE/panel/module.json deleted file mode 100644 index 6e00f140..00000000 --- a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoIAE/panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"8129fb4190c0a0e69388a460964993fb77c76f41d8cbdea492c1e501bd63ef85f2c387faf80b9228ccb709a36a0f2a53c97b820747b016eb6338cfa3be35a6e3"} diff --git a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoIAE_acj/panel/module.json b/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoIAE_acj/panel/module.json deleted file mode 100644 index 6e00f140..00000000 --- a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/SimObjects/Airplanes/A319ceoIAE_acj/panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"8129fb4190c0a0e69388a460964993fb77c76f41d8cbdea492c1e501bd63ef85f2c387faf80b9228ccb709a36a0f2a53c97b820747b016eb6338cfa3be35a6e3"} diff --git a/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoCFM/panel/module.json b/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoCFM/panel/module.json deleted file mode 100644 index 6a087bbc..00000000 --- a/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoCFM/panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"bde9081acafacadaf333ebf9374577b05a9debe14fc06734b57e34743c429099c24b14abbfa5b69ff1e43e7343ce02711f44b6d336ff3b5fb90c5ecc169a46f5"} diff --git a/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoCFMsl/panel/module.json b/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoCFMsl/panel/module.json deleted file mode 100644 index 6a087bbc..00000000 --- a/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoCFMsl/panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"bde9081acafacadaf333ebf9374577b05a9debe14fc06734b57e34743c429099c24b14abbfa5b69ff1e43e7343ce02711f44b6d336ff3b5fb90c5ecc169a46f5"} diff --git a/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoIAE/panel/module.json b/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoIAE/panel/module.json deleted file mode 100644 index 6a087bbc..00000000 --- a/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoIAE/panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"bde9081acafacadaf333ebf9374577b05a9debe14fc06734b57e34743c429099c24b14abbfa5b69ff1e43e7343ce02711f44b6d336ff3b5fb90c5ecc169a46f5"} diff --git a/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoIAEsl/panel/module.json b/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoIAEsl/panel/module.json deleted file mode 100644 index 6a087bbc..00000000 --- a/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/SimObjects/AirPlanes/A320ceoIAEsl/panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"bde9081acafacadaf333ebf9374577b05a9debe14fc06734b57e34743c429099c24b14abbfa5b69ff1e43e7343ce02711f44b6d336ff3b5fb90c5ecc169a46f5"} diff --git a/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/A321neoLEAP/panel/module.json b/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/A321neoLEAP/panel/module.json deleted file mode 100644 index 6a087bbc..00000000 --- a/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/A321neoLEAP/panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"bde9081acafacadaf333ebf9374577b05a9debe14fc06734b57e34743c429099c24b14abbfa5b69ff1e43e7343ce02711f44b6d336ff3b5fb90c5ecc169a46f5"} diff --git a/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/aircrafta321neolrLEAP/panel/module.json b/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/aircrafta321neolrLEAP/panel/module.json deleted file mode 100644 index 6a087bbc..00000000 --- a/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/aircrafta321neolrLEAP/panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"bde9081acafacadaf333ebf9374577b05a9debe14fc06734b57e34743c429099c24b14abbfa5b69ff1e43e7343ce02711f44b6d336ff3b5fb90c5ecc169a46f5"} diff --git a/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/aircrafta321neolrPW/panel/module.json b/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/aircrafta321neolrPW/panel/module.json deleted file mode 100644 index 6a087bbc..00000000 --- a/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/aircrafta321neolrPW/panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"bde9081acafacadaf333ebf9374577b05a9debe14fc06734b57e34743c429099c24b14abbfa5b69ff1e43e7343ce02711f44b6d336ff3b5fb90c5ecc169a46f5"} diff --git a/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/aircrafta321neopw/panel/module.json b/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/aircrafta321neopw/panel/module.json deleted file mode 100644 index 6a087bbc..00000000 --- a/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/SimObjects/AirPlanes/aircrafta321neopw/panel/module.json +++ /dev/null @@ -1 +0,0 @@ -{"hash":"bde9081acafacadaf333ebf9374577b05a9debe14fc06734b57e34743c429099c24b14abbfa5b69ff1e43e7343ce02711f44b6d336ff3b5fb90c5ecc169a46f5"}