-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added github actions for PRs * Added some rustfmt::skip attributes * Applied formatting * Added rustfmt component in action * Configured to use rustfmt version 2 which fixes some comment formatting * Removed ready_for_review condition for github actions Since it has the synchronize condition, it will update after each commit, whether in draft or not, so I think this should be alright
- Loading branch information
1 parent
a2372d1
commit 7dac32d
Showing
99 changed files
with
2,389 additions
and
1,567 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 |
---|---|---|
@@ -1 +1 @@ | ||
msrv = "1.60.0" | ||
msrv = "1.70.0" |
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,32 @@ | ||
name: clippy | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev | ||
- name: Select rust version | ||
run: | | ||
rustup toolchain install 1.70 --profile minimal --no-self-update | ||
rustup default 1.70 | ||
rustup component add clippy | ||
- name: Check clippy | ||
run: | | ||
cargo clippy |
File renamed without changes.
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,32 @@ | ||
name: rustdoc | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
rustdocs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev | ||
- name: Select rust version | ||
run: | | ||
rm Cargo.lock | ||
rustup toolchain install nightly --profile minimal --no-self-update | ||
rustup default nightly | ||
- name: Build rustdoc | ||
run: | | ||
RUSTDOCFLAGS="--deny=warnings --cfg=docsrs" cargo doc --all-features |
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,32 @@ | ||
name: rustfmt | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
rustfmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev | ||
- name: Select rust version | ||
run: | | ||
rustup toolchain install nightly --profile minimal --no-self-update | ||
rustup default nightly | ||
rustup component add rustfmt | ||
- name: Check rustfmt | ||
run: | | ||
cargo +nightly fmt --check |
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,44 @@ | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
RUSTFLAGS: '--deny warnings' | ||
|
||
jobs: | ||
test-ubuntu: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev | ||
- name: Select rust version | ||
run: | | ||
rustup toolchain install 1.70 --profile minimal --no-self-update | ||
rustup default 1.70 | ||
- name: Run tests with default features | ||
run: | | ||
cargo test | ||
- name: Run tests with all features | ||
run: | | ||
cargo test #--features=std,fugit,femtos | ||
- name: Run test with no_std | ||
run: | | ||
cargo test --no-default-features | ||
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,24 @@ | ||
edition = "2021" | ||
version = "Two" | ||
|
||
max_width = 132 | ||
|
||
struct_lit_width = 0 # default 18 (24) | ||
fn_call_width=100 # default 60 (80) | ||
array_width=132 # default 60 (80) | ||
#chain_width=100 # default 60 (80) | ||
#attr_fn_like_width=100 # default 70 (92) | ||
#single_line_if_else_max_width=100 # default 50 (66) | ||
#struct_variant_width = 0 # default 35 (46) | ||
|
||
newline_style = "Unix" | ||
reorder_imports = false | ||
match_block_trailing_comma = true | ||
|
||
## Experimental Features | ||
unstable_features = true | ||
blank_lines_upper_bound = 3 | ||
overflow_delimited_expr = true | ||
|
||
# it would be nice to allow a newline at the top and bottom of file | ||
# it would be nice to not erase the whitespace between the end of the code line and start of a comment on the same line |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
use crate::error::Error; | ||
|
||
|
||
|
@@ -43,4 +42,3 @@ impl InterruptController { | |
Ok(acknowledge) | ||
} | ||
} | ||
|
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
Oops, something went wrong.