-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #726 from 0xPolygonMiden/next
Tracking PR for v0.5 release
- Loading branch information
Showing
200 changed files
with
3,519 additions
and
2,573 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,2 @@ | ||
# initial run of pre-commit | ||
7e025f9b5d0feccfc2c9b1630f951a4256024906 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-toml | ||
- id: pretty-format-json | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: detect-private-key | ||
- repo: https://github.com/hackaugusto/pre-commit-cargo | ||
rev: v1.0.0 | ||
hooks: | ||
# Allows cargo fmt to modify the source code prior to the commit | ||
- id: cargo | ||
name: Cargo fmt | ||
args: ["+stable", "fmt", "--all"] | ||
stages: [commit] | ||
# Requires code to be properly formatted prior to pushing upstream | ||
- id: cargo | ||
name: Cargo fmt --check | ||
args: ["+stable", "fmt", "--all", "--check"] | ||
stages: [push, manual] | ||
- id: cargo | ||
name: Cargo check --all-targets | ||
args: ["+stable", "check", "--all-targets"] | ||
- id: cargo | ||
name: Cargo check --all-targets --no-default-features | ||
args: ["+stable", "check", "--all-targets", "--no-default-features"] | ||
- id: cargo | ||
name: Cargo check --all-targets --all-features | ||
args: ["+stable", "check", "--all-targets", "--all-features"] | ||
# Unlike fmt, clippy will not be automatically applied | ||
- id: cargo | ||
name: Cargo clippy | ||
args: ["+nightly", "clippy", "--workspace", "--", "--deny", "clippy::all", "--deny", "warnings"] |
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
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,5 +1,13 @@ | ||
FEATURES_INTERNALS=--features internals | ||
FEATURES_CONCURRENT_EXEC=--features concurrent,executable | ||
PROFILE_OPTIMIZED=--profile optimized | ||
PROFILE_TEST=--profile test-release | ||
|
||
bench: | ||
cargo bench $(PROFILE_OPTIMIZED) | ||
|
||
exec: | ||
cargo build --release --features concurrent,executable | ||
cargo build $(PROFILE_OPTIMIZED) $(FEATURES_CONCURRENT_EXEC) | ||
|
||
test: | ||
RUSTFLAGS="-C debug-assertions -C overflow-checks -C debuginfo=2" cargo test --release --features internals | ||
cargo test $(PROFILE_TEST) $(FEATURES_INTERNALS) |
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
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
Oops, something went wrong.