Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run
cargo generate --lib --git https://github.com/fission-codes/rust…
- Loading branch information
0 parents
commit 7a08f88
Showing
44 changed files
with
2,350 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 @@ | ||
use_flake |
Validating CODEOWNERS rules …
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 @@ | ||
# Default | ||
* @fission-codes |
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,61 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: "\U0001F41B bug" | ||
assignees: '' | ||
|
||
--- | ||
|
||
# Summary | ||
|
||
## Problem | ||
|
||
Describe the immediate problem. | ||
|
||
### Impact | ||
|
||
What's the impact of this bug? | ||
|
||
## Solution | ||
|
||
Describe the sort of fix that would solve the issue. | ||
|
||
# Detail | ||
|
||
**Describe the bug** | ||
|
||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
|
||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
|
||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
|
||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
|
||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
|
||
Add any other context about the problem here. |
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,42 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: "\U0001F497 enhancement" | ||
assignees: '' | ||
|
||
--- | ||
|
||
NB: Feature requests will only be considered if they solve a pain or present a useful refactoring of the code. | ||
|
||
# Summary | ||
|
||
## Problem | ||
|
||
Describe the pain that this feature will solve. | ||
|
||
### Impact | ||
|
||
Describe the impact of not having this feature. | ||
|
||
## Solution | ||
|
||
Describe the solution. | ||
|
||
# Detail | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
|
||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
|
||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
|
||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
|
||
Add any other context or screenshots about the feature request here. |
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,27 @@ | ||
# Description | ||
|
||
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. | ||
|
||
## Link to issue | ||
|
||
Please add a link to any relevant issues/tickets. | ||
|
||
## Type of change | ||
|
||
- [ ] Bug fix (non-breaking change that fixes an issue) | ||
- [ ] New feature (non-breaking change that adds functionality) | ||
- [ ] Refactor (non-breaking change that updates existing functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] This change requires a documentation update | ||
- [ ] Comments have been added/updated | ||
|
||
Please delete options that are not relevant. | ||
|
||
## Test plan (required) | ||
|
||
Demonstrate the code is solid. Which commands did you test with and what are the expected results? | ||
Which tests have you added or updated? Do the tests cover all of the changes included in this PR? | ||
|
||
## Screenshots/Screencaps | ||
|
||
Please add previews of any UI 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,18 @@ | ||
name: 🛡 Audit-Check | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
security-audit: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Audit-Check | ||
uses: rustsec/audit-check@v0.1.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "cargo" | ||
directory: "/rhizome" | ||
commit-message: | ||
prefix: "chore(rust)" | ||
include: "scope" | ||
target-branch: "main" | ||
schedule: | ||
interval: "weekly" | ||
|
||
- package-ecosystem: "npm" | ||
directory: "/rhizome-wasm" | ||
commit-message: | ||
prefix: "chore(npm)" | ||
include: "scope" | ||
target-branch: "main" | ||
schedule: | ||
interval: "weekly" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
commit-message: | ||
prefix: "chore(ci)" | ||
include: "scope" | ||
target-branch: "main" | ||
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,18 @@ | ||
name: 🛡 Audit-Check | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
security-audit: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Audit-Check | ||
uses: rustsec/audit-check@0.1.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,58 @@ | ||
name: 📈 Benchmark | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
pull_request: | ||
branches: [ '*' ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
benchmark: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Rust Toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
override: true | ||
toolchain: stable | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Run Benchmark | ||
run: cargo bench -p rhizome-benches -- --output-format bencher | tee output.txt | ||
|
||
- name: Upload Benchmark Result Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bench_result | ||
path: output.txt | ||
|
||
- name: Create gh-pages Branch | ||
uses: peterjgrainger/action-create-branch@v2.3.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
branch: gh-pages | ||
|
||
- name: Store Benchmark Result | ||
uses: benchmark-action/github-action-benchmark@v1 | ||
with: | ||
name: Rust Benchmark | ||
tool: 'cargo' | ||
output-file-path: output.txt | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
auto-push: ${{ github.event_name == 'push' && github.repository == 'QuinnWilton/rhizome' && github.ref == 'refs/heads/main' }} | ||
alert-threshold: '200%' | ||
comment-on-alert: true | ||
fail-on-alert: true | ||
alert-comment-cc-users: '@fission-codes' |
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,62 @@ | ||
name: ☂ Code Coverage | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
pull_request: | ||
branches: [ '*' ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Rust Toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
override: true | ||
toolchain: nightly | ||
components: llvm-tools-preview | ||
profile: minimal | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Generate Code coverage | ||
env: | ||
CARGO_INCREMENTAL: '0' | ||
LLVM_PROFILE_FILE: "rhizome-%p-%m.profraw" | ||
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' | ||
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' | ||
## currently just runs coverage on rust project | ||
run: cargo test -p rhizome --all-features | ||
|
||
- name: Install grcov | ||
run: "curl -L https://github.com/mozilla/grcov/releases/download/v0.8.12/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -" | ||
|
||
- name: Run grcov | ||
run: "./grcov . --llvm --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '/*' -o lcov.info" | ||
|
||
- name: Install covfix | ||
uses: actions-rs/install@v0.1 | ||
with: | ||
crate: rust-covfix | ||
use-tool-cache: true | ||
|
||
- name: Run covfix | ||
run: rust-covfix lcov.info -o lcov.info --verbose | ||
|
||
- name: Upload to codecov.io | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true | ||
files: lcov.info |
Oops, something went wrong.