Note: This is not yet implemented.
Both Elm and Rust are type safe languages, and it is quite helpful during development. Where things tend to break is type safety across the network boundary: API data may not be what frontend expects.
In Realm, each route corresponds to a “Page”, which is a struct defined, specific to that particular page. Realm comes with a macro that automatically converts this rust struct to corresponding Elm record, and automatically created JSON encoders and decoders for it.
This allows frontend code to stop compiling if any change in backend data generation code has taken place.
rustfmtFor Some Section