
* chore: update crate version to v0.9.0 * chore: remove deprecated re-exports * chore: remove Box re-export * feat: implement pure-Rust keygen and signing for RpoFalcon512 (#285) * feat: add reproducible builds (#296) * fix: address a few issues for migrating Miden VM (#298) * feat: add RngCore supertrait for FeltRng (#299) --------- Co-authored-by: Al-Kindi-0 <82364884+Al-Kindi-0@users.noreply.github.com> Co-authored-by: Paul-Henry Kajfasz <42912740+phklive@users.noreply.github.com>
86 lines
2.6 KiB
TOML
86 lines
2.6 KiB
TOML
# Cargo Makefile
|
|
|
|
# -- linting --------------------------------------------------------------------------------------
|
|
[tasks.format]
|
|
toolchain = "nightly"
|
|
command = "cargo"
|
|
args = ["fmt", "--all"]
|
|
|
|
[tasks.format-check]
|
|
toolchain = "nightly"
|
|
command = "cargo"
|
|
args = ["fmt", "--all", "--", "--check"]
|
|
|
|
[tasks.clippy-default]
|
|
command = "cargo"
|
|
args = ["clippy","--workspace", "--all-targets", "--", "-D", "clippy::all", "-D", "warnings"]
|
|
|
|
[tasks.clippy-all-features]
|
|
command = "cargo"
|
|
args = ["clippy","--workspace", "--all-targets", "--all-features", "--", "-D", "clippy::all", "-D", "warnings"]
|
|
|
|
[tasks.clippy]
|
|
dependencies = [
|
|
"clippy-default",
|
|
"clippy-all-features"
|
|
]
|
|
|
|
[tasks.fix]
|
|
description = "Runs Fix"
|
|
command = "cargo"
|
|
toolchain = "nightly"
|
|
args = ["fix", "--allow-staged", "--allow-dirty", "--all-targets", "--all-features"]
|
|
|
|
[tasks.lint]
|
|
description = "Runs all linting tasks (Clippy, fixing, formatting)"
|
|
run_task = { name = ["format", "format-check", "clippy", "docs"] }
|
|
|
|
# --- docs ----------------------------------------------------------------------------------------
|
|
[tasks.doc]
|
|
env = { "RUSTDOCFLAGS" = "-D warnings" }
|
|
command = "cargo"
|
|
args = ["doc", "--all-features", "--keep-going", "--release"]
|
|
|
|
# --- testing -------------------------------------------------------------------------------------
|
|
[tasks.test]
|
|
description = "Run tests with default features"
|
|
env = { "RUSTFLAGS" = "-C debug-assertions -C overflow-checks -C debuginfo=2" }
|
|
workspace = false
|
|
command = "cargo"
|
|
args = ["test", "--release"]
|
|
|
|
[tasks.test-no-default-features]
|
|
description = "Run tests with no-default-features"
|
|
env = { "RUSTFLAGS" = "-C debug-assertions -C overflow-checks -C debuginfo=2" }
|
|
workspace = false
|
|
command = "cargo"
|
|
args = ["test", "--release", "--no-default-features"]
|
|
|
|
[tasks.test-all]
|
|
description = "Run all tests"
|
|
workspace = false
|
|
run_task = { name = ["test", "test-no-default-features"], parallel = true }
|
|
|
|
# --- building ------------------------------------------------------------------------------------
|
|
[tasks.build]
|
|
description = "Build in release mode"
|
|
command = "cargo"
|
|
args = ["build", "--release"]
|
|
|
|
[tasks.build-no-std]
|
|
description = "Build using no-std"
|
|
command = "cargo"
|
|
args = ["build", "--release", "--no-default-features", "--target", "wasm32-unknown-unknown"]
|
|
|
|
[tasks.build-avx2]
|
|
description = "Build using AVX2 acceleration"
|
|
env = { "RUSTFLAGS" = "-C target-feature=+avx2" }
|
|
command = "cargo"
|
|
args = ["build", "--release"]
|
|
|
|
[tasks.build-sve]
|
|
description = "Build with SVE acceleration"
|
|
env = { "RUSTFLAGS" = "-C target-feature=+sve" }
|
|
command = "cargo"
|
|
args = ["build", "--release"]
|
|
|