diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..bf15bbc --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,27 @@ +[unstable] +build-std = ["std", "panic_abort", "core", "alloc"] + +[build] +rustflags = [ + "-Clto", + "-Zvirtual-function-elimination", + "-Zlocation-detail=none", +] + + +[profile.dev] +opt-level = 0 +debug = 1 +split-debuginfo = "unpacked" +incremental = true + +[profile.release] +opt-level = "z" +debug = false +lto = true +codegen-units = 1 +panic = "abort" +strip = true +incremental = false + +