-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also cleanup the code, use rustfmt, and migrate to once_cell.
- Loading branch information
Showing
4 changed files
with
110 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-Cdebuginfo=0 --deny=warnings" | ||
RUSTDOCFLAGS: "--deny=warnings" | ||
|
||
jobs: | ||
fmt: | ||
name: Check Formatting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
rust-version: nightly | ||
components: rustfmt | ||
- name: Check Formatting | ||
run: cargo +nightly fmt --all -- --check | ||
|
||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust_version: ["1.64", stable, nightly] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
rust-version: ${{ matrix.rust_version }} | ||
|
||
- name: Check documentation | ||
run: cargo doc --no-deps --document-private-items | ||
|
||
- name: Run tests | ||
run: cargo test --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,16 @@ repository = "https://github.com/rust-windowing/xkbcommon-dl" | |
authors = ["Francesca Frangipane <[email protected]>"] | ||
license = "MIT" | ||
description = "Dynamically loaded xkbcommon and xkbcommon-x11 Rust bindings." | ||
edition = "2018" | ||
edition = "2021" | ||
rust-version = "1.64" | ||
|
||
[badges] | ||
|
||
[features] | ||
x11 = [] | ||
|
||
[dependencies] | ||
dlib = "0.5" | ||
lazy_static = "1.0" | ||
bitflags = "2.3.1" | ||
dlib = "0.5" | ||
log = "0.4" | ||
once_cell = "1.17" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters