-
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.
Signed-off-by: Lorenzo Delgado <[email protected]>
- Loading branch information
Showing
8 changed files
with
197 additions
and
16 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,109 @@ | ||
{ | ||
$schema: 'https://docs.renovatebot.com/renovate-schema.json', | ||
extends: [ | ||
'config:recommended', | ||
':semanticCommits', | ||
':semanticCommitTypeAll(chore)', | ||
'helpers:pinGitHubActionDigests', | ||
], | ||
schedule: [ | ||
'before 6am on Monday', | ||
], | ||
configMigration: true, | ||
rebaseWhen: 'behind-base-branch', | ||
lockFileMaintenance: { | ||
enabled: true, | ||
}, | ||
packageRules: [ | ||
{ | ||
groupName: 'futures crates', | ||
groupSlug: 'futures', | ||
matchManagers: [ | ||
'cargo', | ||
], | ||
matchPackageNames: [ | ||
'futures', | ||
], | ||
matchPackagePrefixes: [ | ||
'futures-', | ||
'futures_', | ||
], | ||
}, | ||
{ | ||
groupName: 'serde crates', | ||
groupSlug: 'serde', | ||
matchManagers: [ | ||
'cargo', | ||
], | ||
matchPackageNames: [ | ||
'serde', | ||
], | ||
matchPackagePrefixes: [ | ||
'serde-', | ||
'serde_', | ||
], | ||
}, | ||
{ | ||
groupName: 'tonic crates', | ||
groupSlug: 'tonic', | ||
matchManagers: [ | ||
'cargo', | ||
], | ||
matchSourceUrlPrefixes: [ | ||
'https://github.com/hyperium/tonic', | ||
'https://github.com/tokio-rs/prost', | ||
], | ||
}, | ||
{ | ||
groupName: 'tracing crates', | ||
groupSlug: 'tracing', | ||
matchManagers: [ | ||
'cargo', | ||
], | ||
matchSourceUrlPrefixes: [ | ||
'https://github.com/tokio-rs/tracing', | ||
], | ||
matchPackagePrefixes: [ | ||
'tracing-', | ||
'tracing_', | ||
], | ||
}, | ||
{ | ||
groupName: 'alloy-rs core types monorepo', | ||
groupSlug: 'alloy-core', | ||
matchManagers: [ | ||
'cargo', | ||
], | ||
matchSourceUrlPrefixes: [ | ||
'https://github.com/alloy-rs/core', | ||
], | ||
}, | ||
{ | ||
groupName: 'async-graphql crates', | ||
groupSlug: 'async-graphql', | ||
matchManagers: [ | ||
'cargo', | ||
], | ||
matchPackageNames: [ | ||
'async-graphql', | ||
], | ||
matchPackagePrefixes: [ | ||
'async-graphql-', | ||
], | ||
}, | ||
], | ||
customManagers: [ | ||
{ | ||
customType: 'regex', | ||
fileMatch: [ | ||
'^rust-toolchain(\\.toml)?$', | ||
], | ||
matchStrings: [ | ||
'channel\\s*=\\s*"(?<currentValue>\\d+\\.\\d+\\.\\d+)"', | ||
], | ||
depNameTemplate: 'rust', | ||
packageNameTemplate: 'rust-lang/rust', | ||
datasourceTemplate: 'github-releases', | ||
}, | ||
], | ||
} |
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,49 @@ | ||
name: ci | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUST_BACKTRACE: full | ||
RUSTFLAGS: '-D warnings' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
|
||
- name: Setup Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
components: clippy | ||
|
||
- name: Cache Cargo build files | ||
uses: Leafwing-Studios/cargo-cache@c7e8aa40ae2c975774d3bd766beb92927cfd7771 # v1 | ||
|
||
- run: cargo check | ||
- run: cargo clippy -- -Dwarnings --force-warn deprecated --force-warn dead-code | ||
|
||
- name: Unit tests | ||
run: cargo test --lib | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
|
||
- name: Setup Rust toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
toolchain: nightly | ||
components: rustfmt | ||
|
||
- run: cargo +nightly fmt --all -- --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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
## IDEs and editors | ||
/.idea | ||
/.vscode | ||
|
||
## Rust | ||
/.config/ | ||
**/*.rs.bk | ||
/target/ |
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,3 @@ | ||
[toolchain] | ||
channel = "stable" | ||
profile = "default" |
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 @@ | ||
unstable_features = true | ||
imports_granularity = "Crate" | ||
group_imports = "StdExternalCrate" | ||
reorder_modules = true |
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