Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"@commitlint/config-angular"
]
}
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: weekly
41 changes: 41 additions & 0 deletions .github/workflows/ci_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Check

on:
push:
branches:
- master
paths:
- "Cargo.toml"
- "**/*.rs"
- ".github/workflows/ci_check.yml"
pull_request:
branches:
- master
paths:
- "Cargo.toml"
- "**/*.rs"
- ".github/workflows/ci_check.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

env:
RUST_BACKTRACE: 1

jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Rust Toolchain
run: |
rustup default nightly
rustup component add clippy
- name: Check clippy
shell: bash
run: |
cargo clippy --all-features --all-targets -- -Dwarnings
- name: Check Docs
run: |
cargo doc --all-features --no-deps
42 changes: 42 additions & 0 deletions .github/workflows/ci_check_minimal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Check (Minimal Versions)

on:
push:
branches:
- master
paths:
- "Cargo.toml"
- "**/*.rs"
- ".github/workflows/ci_check_minimal.yml"
pull_request:
branches:
- master
paths:
- "Cargo.toml"
- "**/*.rs"
- ".github/workflows/ci_check_minimal.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

env:
RUST_BACKTRACE: 1

jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Rust Toolchain
run: |
rustup default nightly
rustup component add clippy
- uses: taiki-e/install-action@cargo-no-dev-deps
- name: Check clippy
shell: bash
run: |
cargo no-dev-deps -Zminimal-versions clippy --all-features --lib
- name: Check Docs
run: |
cargo no-dev-deps -Zminimal-versions doc --all-features --no-deps
15 changes: 15 additions & 0 deletions .github/workflows/ci_commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint Commit Messages
on:
- pull_request
- push

permissions:
contents: read
pull-requests: read

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wagoid/commitlint-github-action@v6
33 changes: 33 additions & 0 deletions .github/workflows/ci_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check Code Format

on:
push:
branches:
- master
paths:
- "rustfmt.toml"
- "Cargo.toml"
- "**/*.rs"
- ".github/workflows/ci_format.yml"
pull_request:
branches:
- master
paths:
- "rustfmt.toml"
- "**/*.rs"
- ".github/workflows/ci_format.yml"

env:
RUST_BACKTRACE: 1

jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Rust Toolchain
run: |
rustup default nightly
rustup component add rustfmt
- name: Check Format
run: cargo fmt --all -- --check
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
/target
/Cargo.lock
/.cargo

/.direnv
/.envrc

# Editor directories
/.vscode
/.zed
/.idea
Loading