-
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.
rewrote & applied pre-commit conf, fixed cargo, deleted temp. files
- Loading branch information
1 parent
61872a5
commit 79bea8f
Showing
12 changed files
with
271 additions
and
442 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,35 +1,18 @@ | ||
repos: | ||
- repo: local | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.3.0 | ||
hooks: | ||
- id: commit-msg | ||
name: commit lint | ||
entry: commitlint --edit | ||
language: system | ||
stages: [commit-msg] | ||
|
||
- id: cargo-fmt | ||
name: cargo format | ||
entry: cargo fmt | ||
language: rust | ||
args: ["--", "--check"] | ||
types: [rust] | ||
stages: [pre-commit] | ||
|
||
- id: cargo-clippy | ||
name: cargo clippy | ||
description: Lint rust sources | ||
entry: cargo clippy | ||
language: rust | ||
args: ["--", "-D", "warnings"] | ||
types: [rust] | ||
pass_filenames: false | ||
stages: [pre-commit] | ||
|
||
- id: check-byte-order-marker | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- repo: https://github.com/doublify/pre-commit-rust | ||
rev: master | ||
hooks: | ||
- id: fmt | ||
- id: clippy | ||
- id: cargo-check | ||
name: cargo check | ||
description: Check the package for errors. | ||
entry: cargo check | ||
language: rust | ||
types: [rust] | ||
pass_filenames: false | ||
stages: [pre-commit] |
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,50 +1,13 @@ | ||
cargo-features = ["edition2024"] | ||
|
||
[package] | ||
name = "zk-auctions" | ||
version = "0.1.0" | ||
|
||
[dependencies] | ||
zk-auctions-methods = { path = "methods" } | ||
risc0-zkvm = "v1.1.3" | ||
risc0-zkvm = "1.1.3" | ||
tracing-subscriber = { version = "0.3", features = ["env-filter"] } | ||
|
||
[features] | ||
cuda = ["risc0-zkvm/cuda"] | ||
default = [] | ||
prove = ["risc0-zkvm/prove"] | ||
|
||
[workspace] | ||
|
||
resolver = "2" | ||
|
||
members = [ | ||
"methods", | ||
] | ||
|
||
# Dev / testing mode. We make opt-level = 3 to improve proving times (otherwise it is really slow) | ||
opt-level = 3 | ||
debug = 1 # change to 0 or 2 for more or less debug info | ||
overflow-checks = true # default | ||
incremental = true # default | ||
|
||
# Local "release" mode, more optimized than dev but faster to compile than release | ||
[profile.local] | ||
inherits = "dev" | ||
opt-level = 3 | ||
# Set this to 1 or 2 to get more useful backtraces | ||
debug = 1 | ||
debug-assertions = false | ||
panic = 'unwind' | ||
# better recompile times | ||
incremental = true | ||
lto = "thin" | ||
codegen-units = 16 | ||
|
||
[profile.release] | ||
opt-level = 3 | ||
debug = false | ||
debug-assertions = false | ||
lto = "fat" | ||
panic = "abort" | ||
incremental = false |
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,3 +1,3 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
}; | ||
}; |
Oops, something went wrong.