build: production profile for highscore-server

This commit is contained in:
2026-08-29 20:50:41 +02:00
parent 8e1a1c91e2
commit d5336a2a92
2 changed files with 23 additions and 1 deletions
+19
View File
@@ -24,3 +24,22 @@ unwrap_used = "warn"
[lints.rust] [lints.rust]
unsafe_code = "forbid" unsafe_code = "forbid"
[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
incremental = false
codegen-units = 1
+4 -1
View File
@@ -9,7 +9,10 @@ build:
build-release: build-release:
cargo build --release cargo build --release
build-production: build-production-highscore-server:
cargo build --manifest-path highscore-server/Cargo.toml --profile production
build-production: build-production-highscore-server
cargo build --profile production cargo build --profile production
web-build: web-build: