-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
82 additions
and
4 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,67 @@ | ||
name: PR | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
pull_request: | ||
branches: | ||
- "**" | ||
merge_group: | ||
|
||
jobs: | ||
test-x86_64: | ||
name: Test on x86_64 | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup CI | ||
uses: ./.github/actions/setup | ||
|
||
- name: Run cargo check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
toolchain: nightly-2024-04-17 | ||
args: --all-targets --all-features | ||
|
||
- name: Run cargo test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
toolchain: nightly-2024-04-17 | ||
args: --release --features | ||
env: | ||
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native | ||
RUST_BACKTRACE: 1 | ||
|
||
lint: | ||
name: Formatting & Clippy | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup CI | ||
uses: ./.github/actions/setup | ||
|
||
- name: Run cargo fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
env: | ||
CARGO_INCREMENTAL: 1 | ||
|
||
- name: Run cargo clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-features --all-targets -- -D warnings -A incomplete-features | ||
env: | ||
CARGO_INCREMENTAL: 1 |
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,4 @@ | ||
msrv = "1.79" | ||
# bytes::Bytes is included by default and alloy_primitives::Bytes is a wrapper around it, | ||
# so it is safe to ignore it as well | ||
ignore-interior-mutability = ["bytes::Bytes", "alloy_primitives::Bytes"] |
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,5 +1,11 @@ | ||
fn_params_layout = "Tall" | ||
reorder_imports = true | ||
imports_granularity = "Crate" | ||
use_small_heuristics = "Max" | ||
max_width = 120 | ||
reorder_modules = false | ||
reorder_imports = false | ||
comment_width = 100 | ||
wrap_comments = true | ||
binop_separator = "Back" | ||
trailing_comma = "Vertical" | ||
trailing_semicolon = false | ||
use_field_init_shorthand = true | ||
format_code_in_doc_comments = true | ||
doc_comment_code_block_width = 100 |
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,5 @@ | ||
#![feature(asm_const)] | ||
#![allow(unexpected_cfgs)] | ||
|
||
pub mod ziskos_definitions; | ||
|
||
|