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
10
11
12
13
14
15
port module {{ file_name }} exposing (..)

import {{ module_path }}


port out : {{ output_type }} -> Cmd msg


main : Program {{ input_type }} () Never
main =
    Platform.worker
        { init = \x -> ( (), {{ module_path }}.{{ function_name }} x |> out )
        , subscriptions = always Sub.none
        , update = \_ m -> ( m, Cmd.none )
        }