包含调试信息,我的二进制文件大约变为400 MB。发生这种情况是因为Rust包含所有依赖项的调试信息。有什么办法只为我的代码包括调试信息吗?
[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
Run Code Online (Sandbox Code Playgroud)