-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 904047a
Showing
20 changed files
with
1,634 additions
and
0 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,5 @@ | ||
[advisories] | ||
|
||
[output] | ||
deny = ["warnings", "yanked", "unsound", "unmaintained"] | ||
quiet = false |
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,17 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
directory: "/leb128fmt/" | ||
schedule: | ||
interval: weekly | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: cargo | ||
directory: "/leb128fmt-tests/" | ||
schedule: | ||
interval: weekly | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
open-pull-requests-limit: 10 |
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,36 @@ | ||
name: Rust Security Audit | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**/Cargo.toml' | ||
- '**/Cargo.lock' | ||
pull_request: | ||
|
||
jobs: | ||
audit: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
rust: | ||
- stable | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
components: rustfmt | ||
- name: Rust Version | ||
run: rustc --version | ||
- run: cargo install cargo-audit | ||
- run: cargo generate-lockfile | ||
- run: cargo audit --deny warnings |
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,122 @@ | ||
name: Rust CI | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
|
||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
rust: | ||
- stable | ||
- 1.56.0 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
- name: Rust Version | ||
run: rustc --version | ||
- name: Run cargo build (--all-features) | ||
run: cargo build --all-features --release | ||
- name: Run cargo build (--no-default-features) | ||
run: cargo build --no-default-features --release | ||
- name: Run cargo build (--features alloc) | ||
run: cargo build --no-default-features --release --features alloc | ||
- name: Run cargo build (--features std) | ||
run: cargo build --no-default-features --release --features std | ||
test: | ||
name: Test | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
rust: | ||
- stable | ||
- 1.56.0 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
- name: Rust Version | ||
run: rustc --version | ||
- name: Run cargo check (--all-features) | ||
run: cargo check --all-features | ||
- name: Run cargo test (default) | ||
run: cargo test | ||
- name: Run cargo test (--all-features) | ||
run: cargo test --all-features | ||
- name: Run cargo test (--no-default-features) | ||
run: cargo test --no-default-features | ||
- name: Run cargo test (--features alloc) | ||
run: cargo test --no-default-features --features alloc | ||
- name: Run cargo test (--features std) | ||
run: cargo test --no-default-features --features std | ||
rustfmt: | ||
name: Format | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
rust: | ||
- stable | ||
- nightly | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
components: rustfmt | ||
- name: Rust Version | ||
run: rustc --version | ||
- run: cargo fmt --all -- --check | ||
clippy: | ||
name: Clippy | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
rust: | ||
- stable | ||
- nightly | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
components: clippy | ||
- name: Run cargo clippy | ||
run: cargo clippy --all-targets --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,80 @@ | ||
name: Rust CI Tests | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
|
||
pull_request: | ||
|
||
defaults: | ||
run: | ||
working-directory: leb128fmt-tests | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
rust: | ||
- stable | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
- name: Rust Version | ||
run: rustc --version | ||
- name: Run cargo test (--all-features) | ||
run: cargo test --all-features | ||
rustfmt: | ||
name: Format | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
rust: | ||
- stable | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
components: rustfmt | ||
- name: Rust Version | ||
run: rustc --version | ||
- run: cargo fmt --all -- --check | ||
clippy: | ||
name: Clippy | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
rust: | ||
- stable | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
components: clippy | ||
- name: Run cargo clippy | ||
run: cargo clippy --all-targets --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,2 @@ | ||
/target | ||
/Cargo.lock |
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,9 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"leb128fmt", | ||
] | ||
|
||
exclude = [ | ||
"leb128fmt-tests", | ||
] |
Oops, something went wrong.