diff --git a/Cargo.toml b/Cargo.toml index e7a6334..33c0e94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,8 +36,20 @@ windows-sys = { } [profile.release] +debug = true +strip = false +debug-assertions = true +overflow-checks = true +lto = false +panic = "unwind" +incremental = true + +[profile.production] +inherits = "release" debug = false strip = true +debug-assertions = false +overflow-checks = false lto = true -panic = "unwind" +incremental = false codegen-units = 1 diff --git a/justfile b/justfile new file mode 100644 index 0000000..ecf833d --- /dev/null +++ b/justfile @@ -0,0 +1,33 @@ +set positional-arguments + +run *args: + cargo run -- "$@" + +build: + cargo build + +build-release: + cargo build --release + +build-production: + cargo build --profile production + +fmt: + cargo +nightly fmt + tombi format + just --fmt + +_fix: + cargo fix + cargo clippy --fix + +fix: _fix fmt + +clippy: + cargo clippy --workspace --all-targets --all-features -- -D warnings + +test: + cargo test --workspace + +clean: + cargo clean