dev: reduce build sizes (especially debug)
This commit is contained in:
11
Cargo.toml
11
Cargo.toml
@@ -10,8 +10,19 @@ keywords = ["oauth", "oauth2", "oidc", "OpenID"]
|
||||
categories = ["web-programming::http-server", "authentication"]
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
strip = "symbols" # almost half of binary size smh
|
||||
|
||||
# so I don't need "full" just yet and the debug builds are HUGE
|
||||
[profile.dev]
|
||||
debug = 1
|
||||
[profile.dev.package.actix-web]
|
||||
opt-level = 3
|
||||
debug = false
|
||||
[profile.dev.package.tokio]
|
||||
opt-level = 3
|
||||
debug = false
|
||||
|
||||
[features]
|
||||
default = ["pamsock"]
|
||||
pamsock = ["dep:pamsock"]
|
||||
|
||||
Reference in New Issue
Block a user