1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-15 18:13:56 +03:00
juvix/tests/positive/MiniC/ImportExportName
Paul Cadman 657de73b98
WASM import all non-compile axioms with alphanum names in entrypoint (#1426)
* import all non-compile axioms with alphanum names in entrypoint

This commit adds `__attribute__((input_name(<name>)))` to the type
signature of all axioms that do not have a compile block. This indicates
to the compiler that this function should be added to the input table of
the WASM binary.

Adds a test that an imported function can be called from Juvix.

* test: Run node command in same directory as WASM output

* Don't generate importName for non-alphnum axioms

* Add a tutorial on Juvix module to JS interop via Wasm
2022-08-02 18:58:45 +02:00
..
expected.golden WASM import all non-compile axioms with alphanum names in entrypoint (#1426) 2022-08-02 18:58:45 +02:00
input.js WASM import all non-compile axioms with alphanum names in entrypoint (#1426) 2022-08-02 18:58:45 +02:00
Input.juvix WASM import all non-compile axioms with alphanum names in entrypoint (#1426) 2022-08-02 18:58:45 +02:00
juvix.yaml WASM import all non-compile axioms with alphanum names in entrypoint (#1426) 2022-08-02 18:58:45 +02:00