Answers:
如果您愿意在夜间使用工具链使用不稳定的货物功能,则可以通过货物档案依赖功能来实现,如下所示:
cargo-features = ["profile-overrides"]
[package]
name = "app"
version = "0.7.1"
edition = "2018"
[dependencies]
actix = "*"
actix-web = {version = "1.0", features = ["ssl"]}
...
tokio-core = "*"
tokio = "*"
[profile.release]
debug = true
// disable debug symbols for all packages except this one
[profile.release.package."*"]
debug = false