Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
d34351f692
|
|||
|
3c268ddb48
|
|||
|
d061ecdc5e
|
|||
|
92aa36ab67
|
|||
|
1273da946a
|
|||
|
1484c5823b
|
@@ -1,6 +1,2 @@
|
|||||||
[target.x86_64-unknown-linux-gnu]
|
|
||||||
linker = "clang"
|
|
||||||
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
xtask = "run --package xtask --"
|
xtask = "run --package xtask --"
|
||||||
|
|||||||
+10
-21
@@ -3,36 +3,25 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "*"
|
- "*"
|
||||||
tags:
|
pull_request:
|
||||||
- "*"
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
formatting:
|
prek:
|
||||||
name: cargo fmt
|
name: prek
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: dtolnay/rust-toolchain@nightly
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
- uses: j178/prek-action@v2
|
||||||
components: rustfmt
|
|
||||||
- run: cargo fmt --all --check
|
|
||||||
|
|
||||||
clippy:
|
cargo-shear:
|
||||||
name: cargo clippy
|
name: cargo shear
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: dtolnay/rust-toolchain@nightly
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
|
- uses: taiki-e/install-action@v2
|
||||||
with:
|
with:
|
||||||
components: clippy
|
tool: cargo-shear
|
||||||
- run: cargo clippy --workspace --all-features
|
- run: cargo shear --deny-warnings
|
||||||
|
|
||||||
check:
|
|
||||||
name: cargo clippy
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
- uses: dtolnay/rust-toolchain@nightly
|
|
||||||
with:
|
|
||||||
components: clippy
|
|
||||||
- run: cargo check --workspace --all-features
|
|
||||||
|
|||||||
+47
-63
@@ -5,11 +5,6 @@ default_install_hook_types:
|
|||||||
default_stages:
|
default_stages:
|
||||||
- pre-commit
|
- pre-commit
|
||||||
|
|
||||||
exclude:
|
|
||||||
glob:
|
|
||||||
- "schemas/*.json"
|
|
||||||
- "CHANGELOG.md"
|
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: meta
|
- repo: meta
|
||||||
hooks:
|
hooks:
|
||||||
@@ -20,75 +15,64 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
exclude:
|
||||||
|
glob: schemas/*.json
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-toml
|
- id: check-toml
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
# - id: check-executables-have-shebangs
|
|
||||||
|
|
||||||
- repo: local
|
|
||||||
hooks:
|
|
||||||
- id: fmt
|
|
||||||
name: fmt
|
|
||||||
description: Format files with cargo fmt.
|
|
||||||
entry: cargo fmt
|
|
||||||
language: system
|
|
||||||
types: [rust]
|
|
||||||
args: ["--", "--check"]
|
|
||||||
# For some reason some formatting is different depending on how you invoke?
|
|
||||||
pass_filenames: false
|
|
||||||
|
|
||||||
- id: clippy
|
|
||||||
name: clippy
|
|
||||||
description: Lint rust sources
|
|
||||||
entry: cargo clippy
|
|
||||||
language: system
|
|
||||||
args: ["--", "-D", "warnings"]
|
|
||||||
types: [file]
|
|
||||||
files: (\.rs|Cargo.lock)$
|
|
||||||
pass_filenames: false
|
|
||||||
|
|
||||||
- id: audit
|
|
||||||
name: audit
|
|
||||||
description: Audit packages
|
|
||||||
entry: cargo audit
|
|
||||||
args: ["--deny", "warnings"]
|
|
||||||
language: system
|
|
||||||
pass_filenames: false
|
|
||||||
always_run: true
|
|
||||||
|
|
||||||
- id: test
|
|
||||||
name: test
|
|
||||||
description: Rust test
|
|
||||||
entry: cargo test
|
|
||||||
args: ["--workspace"]
|
|
||||||
language: system
|
|
||||||
types: [file]
|
|
||||||
files: (\.rs|Cargo.lock)$
|
|
||||||
pass_filenames: false
|
|
||||||
|
|
||||||
- id: xtask
|
|
||||||
name: xtask
|
|
||||||
description: Rust cargo xtask
|
|
||||||
entry: cargo xtask
|
|
||||||
language: system
|
|
||||||
pass_filenames: false
|
|
||||||
always_run: true
|
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
||||||
rev: v3.1.0
|
|
||||||
hooks:
|
|
||||||
- id: prettier
|
|
||||||
|
|
||||||
- repo: https://github.com/crate-ci/typos
|
- repo: https://github.com/crate-ci/typos
|
||||||
rev: v1.40.0
|
rev: v1.40.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: typos
|
- id: typos
|
||||||
|
|
||||||
- repo: https://github.com/sirwart/ripsecrets
|
- repo: https://github.com/executablebooks/mdformat
|
||||||
rev: v0.1.11
|
rev: "1.0.0"
|
||||||
hooks:
|
hooks:
|
||||||
- id: ripsecrets-system
|
- id: mdformat
|
||||||
|
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: taplo-fmt
|
||||||
|
name: taplo fmt
|
||||||
|
entry: taplo fmt
|
||||||
|
language: python
|
||||||
|
additional_dependencies: ["taplo==0.9.3"]
|
||||||
|
types: [toml]
|
||||||
|
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: fmt
|
||||||
|
name: cargo fmt
|
||||||
|
entry: cargo fmt --
|
||||||
|
language: system
|
||||||
|
types: [rust]
|
||||||
|
pass_filenames: false
|
||||||
|
|
||||||
|
- id: clippy
|
||||||
|
name: cargo clippy
|
||||||
|
entry: cargo clippy --all-targets --all-features -- -D warnings
|
||||||
|
language: system
|
||||||
|
types: [rust]
|
||||||
|
pass_filenames: false
|
||||||
|
|
||||||
|
- id: xtask
|
||||||
|
name: cargo xtask
|
||||||
|
entry: cargo xtask
|
||||||
|
language: system
|
||||||
|
pass_filenames: false
|
||||||
|
always_run: true
|
||||||
|
|
||||||
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||||
|
rev: 0.37.0
|
||||||
|
hooks:
|
||||||
|
- id: check-metaschema
|
||||||
|
files:
|
||||||
|
glob: schemas/*.json
|
||||||
|
- id: check-github-workflows
|
||||||
|
files:
|
||||||
|
glob: .gitea/workflows/*.yaml
|
||||||
|
|
||||||
- repo: https://github.com/crate-ci/committed
|
- repo: https://github.com/crate-ci/committed
|
||||||
rev: v1.1.8
|
rev: v1.1.8
|
||||||
|
|||||||
Generated
+228
-813
File diff suppressed because it is too large
Load Diff
+10
-2
@@ -14,10 +14,14 @@ serde_json = "1.0.149"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "4.6.0", features = ["derive"] }
|
clap = { version = "4.6.0", features = ["derive"] }
|
||||||
clap_complete = "4.6.0"
|
clap_complete = "4.6.0"
|
||||||
gix-discover = "0.48.0"
|
gix-discover = { version = "0.49.0", features = ["sha1"] }
|
||||||
minijinja = { version = "2.18.0", features = ["json", "loader"] }
|
minijinja = { version = "2.18.0", features = ["json", "loader"] }
|
||||||
optional_struct = "0.5.2"
|
optional_struct = "0.5.2"
|
||||||
reqwest = { version = "0.13.2", features = ["blocking"] }
|
reqwest = { version = "0.13.2", default-features = false, features = [
|
||||||
|
"blocking",
|
||||||
|
"stream",
|
||||||
|
"native-tls",
|
||||||
|
] }
|
||||||
schemars = { workspace = true }
|
schemars = { workspace = true }
|
||||||
semver = { version = "1.0.27", features = ["serde"] }
|
semver = { version = "1.0.27", features = ["serde"] }
|
||||||
serde = { version = "1.0.228", features = ["derive"] }
|
serde = { version = "1.0.228", features = ["derive"] }
|
||||||
@@ -25,3 +29,7 @@ serde_json = { workspace = true }
|
|||||||
serde_yaml = "0.9.34"
|
serde_yaml = "0.9.34"
|
||||||
thiserror = "2.0.18"
|
thiserror = "2.0.18"
|
||||||
walkdir = "2.5.0"
|
walkdir = "2.5.0"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
test = false
|
||||||
|
doctest = false
|
||||||
|
|||||||
Reference in New Issue
Block a user