-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 0xkitsune/tracing
- Loading branch information
Showing
26 changed files
with
1,992 additions
and
818 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,17 @@ | ||
name: Bug report | ||
description: File a bug report | ||
labels: ["bug"] | ||
title: "[Bug] " | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Please ensure that the bug has not already been filed in the issue tracker. | ||
Thanks for taking the time to report this bug! | ||
- type: textarea | ||
attributes: | ||
label: Describe the bug | ||
description: Please include code snippets as well if relevant. | ||
validations: | ||
required: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Feature request | ||
description: Suggest a feature | ||
labels: ["enhancement"] | ||
title: "[Feature] " | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Please ensure that the feature has not already been requested in the issue tracker. | ||
- type: textarea | ||
attributes: | ||
label: Describe the feature you would like | ||
description: | ||
Please also describe your goals for the feature. What problems it solves, how it would | ||
be used, etc. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: Add any other context to the feature (screenshots, resources, etc.) |
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,34 @@ | ||
<!-- | ||
Thank you for your Pull Request. Please provide a description above and review | ||
the requirements below. | ||
Bug fixes and new features should include tests. | ||
Contributors guide: https://github.com/alloy-rs/core/blob/main/CONTRIBUTING.md | ||
The contributors guide includes instructions for running rustfmt and building the | ||
documentation. | ||
--> | ||
|
||
<!-- ** Please select "Allow edits from maintainers" in the PR Options ** --> | ||
|
||
## Motivation | ||
|
||
<!-- | ||
Explain the context and why you're making that change. What is the problem | ||
you're trying to solve? In some cases there is not a problem and this can be | ||
thought of as being the motivation for your change. | ||
--> | ||
|
||
## Solution | ||
|
||
<!-- | ||
Summarize the solution and provide any necessary context needed to understand | ||
the code change. | ||
--> | ||
|
||
## PR Checklist | ||
|
||
- [ ] Added Tests | ||
- [ ] Added Documentation | ||
- [ ] Breaking changes |
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,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened,synchronize,reopened] | ||
branches: | ||
- main | ||
|
||
env: | ||
RUST_VERSION: "1.74" | ||
NIGHTLY_VERSION: nightly-2023-08-29 | ||
CARGO_TERM_COLOR: always | ||
# Skip incremental build and debug info generation in CI | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_PROFILE_DEV_DEBUG: 0 | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.NIGHTLY_VERSION }} | ||
override: true | ||
components: rustfmt, clippy | ||
- name: Install protobuf-compiler | ||
run: sudo apt-get install -y protobuf-compiler | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
continue-on-error: false | ||
with: | ||
path: | | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-lint- | ||
- name: Install cargo-sort | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-sort | ||
version: latest | ||
- name: Check formatting | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
- name: Check Cargo.toml formatting | ||
run: cargo sort --check --check-format | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --locked --all-targets | ||
- name: Check docs | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
args: --locked --no-deps --document-private-items | ||
|
||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.NIGHTLY_VERSION }} | ||
override: true | ||
- name: Install protobuf-compiler | ||
run: sudo apt-get install -y protobuf-compiler | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
continue-on-error: false | ||
with: | ||
path: | | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-test- | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: Install latest nextest release | ||
uses: taiki-e/install-action@nextest | ||
- name: Build tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: nextest | ||
args: run --workspace --no-run | ||
- name: Run tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: nextest | ||
args: run --workspace |
Oops, something went wrong.