build: production profile for highscore-server
This commit is contained in:
@@ -24,3 +24,22 @@ unwrap_used = "warn"
|
||||
|
||||
[lints.rust]
|
||||
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
@@ -9,7 +9,10 @@ build:
|
||||
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
|
||||
|
||||
web-build:
|
||||
|
||||
Reference in New Issue
Block a user