elm-rust-binding 0.5.0

Call Elm functions from Rust in an ergonomic way
Documentation
1
2
3
4
5
6
7
8
9
async function call_{{ binding_module_name }}(flags) {
    const { Elm } = await import('{{ binding_module_name }}.js');
    return new Promise((resolve) => {
        const elm = Elm.{{ binding_module_name }}.init({ flags });
        elm.ports.out.subscribe((output) => {
            resolve(output);
        });
    });
}