Skip to content

BenjaminGale/elm-architecture-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Elm Architecture Example

A simple implementation of the Elm Architecture in Rust.


This uses Gtk to create a simple gui application that displays a label and two buttons. The buttons allow you to increment and decrement a count which is displayed in the label.

screenshot.png


I created this to help me understand ownership and borrowing so it only implements a subset of the Elm architecture i.e. this is not a reference implementation as it is missing things like commands and subscriptions.

I have also made some changes to the design which I felt were more appropriate to Rust e.g. the update function mutates the application state instead of returning an updated copy of the model.

About

Simple Elm architecture example written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages