Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sindreij/willow

Implementation of the Elm architecture in Rust
https://github.com/sindreij/willow

Last synced: 2 months ago
JSON representation

Implementation of the Elm architecture in Rust

Awesome Lists containing this project

README

        

**This is a tech-demo. Feel free to learn from it and steal the ideas (if you like them), but it's not something that should (or can) be used directly**

# Willow

**Willow** is an experiment to see if it is possible to create a "elm-like" API using Rust.

## Demo / Examples

- Counter [source code](examples/counter/src/app.rs). [Demo](http://sindrejohansen.no/willow/counter/)
- TodoMVC [source code](examples/todomvc/src/app.rs). [Demo](http://sindrejohansen.no/willow/todomvc/)

## Quickstart

```sh
cd examples/counter/

# See https://github.com/rustwasm/wasm-pack/issues/252
ln -s ../../target target
cargo install wasm-pack
wasm-pack build

cd www/
yarn
yarn start
```

## Backstory

[See my blogpost for the how and why I built this.](https://sindrejohansen.no/blog/willow/rust/elm/2018/11/16/willow-elm-in-rust.html)

## License

Licensed under either of these:

- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or
)

### Contributing

Unless you explicitly state otherwise, any contribution you intentionally submit
for inclusion in the work, as defined in the Apache-2.0 license, shall be
dual-licensed as above, without any additional terms or conditions.