diff options
-rw-r--r-- | .github/workflows/integration.yml | 21 | ||||
-rw-r--r-- | README.md | 13 |
2 files changed, 26 insertions, 8 deletions
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 00000000..3b74cc80 --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,21 @@ +name: Integration +on: [push] +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, beta] + steps: + - uses: hecrj/setup-rust-action@v1 + with: + rust-version: ${{ matrix.rust }} + - name: Install libinput + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt-get -qq update + sudo apt-get install -y libudev-dev + - uses: actions/checkout@master + - name: Run tests + run: cargo test --verbose @@ -1,10 +1,8 @@ -Iced - +# Iced [](https://travis-ci.org/hecrj/iced) [](https://docs.rs/iced) [](https://crates.io/crates/iced) [](https://github.com/hecrj/iced/blob/master/LICENSE) -------------------- A simple GUI runtime for Rust, heavily inspired by [Elm]. @@ -23,7 +21,7 @@ missing] and there are probably _many_ bugs. [Feel free to contribute!] * Simple, easy-to-use API * Responsive, flexbox-based layouting * Type-safe, reactive programming model - * Many built-in widgets + * Built-in widgets * Custom widget support * Renderer-agnostic runtime @@ -87,7 +85,7 @@ use iced::{Button, Column, Text}; use iced_wgpu::Renderer; // Iced is renderer-agnostic! We need to bring our own! impl Counter { - fn view(&mut self) -> Column<Message> { + fn view(&mut self) -> Column<Message, Renderer> { // We use a column: a simple vertical layout Column::new() .push( @@ -150,9 +148,8 @@ Browse the [documentation] and the [examples] to learn more! [gui_gfycat]: https://gfycat.com/gloomyweakhammerheadshark ## Implementation details -Iced was originally born as part of [Coffee], a 2D game engine I am working on, -as an attempt at bringing the simplicity of [Elm] and [The Elm Architecture] -into Rust. +Iced was originally born as an attempt at bringing the simplicity of [Elm] and +[The Elm Architecture] into [Coffee], a 2D game engine I am working on. Currently, Iced builds upon * [`stretch`] for flexbox-based layouting. |