From 564aae18dcd9545edc84e23efe3afd90151a1c2a Mon Sep 17 00:00:00 2001 From: Jonathan Spira Date: Sat, 28 Sep 2024 23:55:22 -0400 Subject: [PATCH] bumped sdl2 version --- .github/workflows/ci.yaml | 35 +++++++++++++++++++++++++++++++++++ Cargo.toml | 6 +++--- README.md | 2 +- 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..3ba4e86 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,35 @@ +name: ci +on: + pull_request: + push: + branches: + - main + +jobs: + rustfmt: + name: Check rustfmt + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + steps: + - name: Checkout + uses: actions/checkout@v4 + - run: cargo fmt --all -- --check + + test: + name: Lint and test + runs-on: ubuntu-latest + env: + RUSTFLAGS: -D warnings + RUSTDOCFLAGS: -D warnings + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: clippy + run: cargo clippy + + - name: test + run: cargo test + + - name: build examples + run: cargo build --examples diff --git a/Cargo.toml b/Cargo.toml index 8c1e88f..f39139e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,9 @@ categories = ["gui"] [dependencies] imgui = "0.12.0" -sdl2 = "0.36" +sdl2 = "0.37" [dev-dependencies] -glow = "0.13.1" +glow = "0.14" imgui-glow-renderer = "0.12.0" -sdl2 = { version = "0.36", features = ["bundled", "static-link"] } +sdl2 = { version = "0.37", features = ["bundled", "static-link"] } \ No newline at end of file diff --git a/README.md b/README.md index 6177d47..398de45 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # imgui-sdl2-support -This crate provides a SDL 2 based backend platform for imgui-rs. +This crate provides an SDL2 based backend platform for imgui-rs. A backend platform handles window/input device events and manages their state.