diff --git a/.cargo/config.toml b/.cargo/config.toml index 72d09cf0..7ac3e94c 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -11,3 +11,9 @@ rustflags = [ # these capabilities, so let's optimize for them "-Ctarget-cpu=apple-m1" ] + +[target.'cfg(target_os = "windows")'] +rustflags = [ + "--cfg", + "windows_slim_errors", # This cfg will reduce the size of `windows::core::Error` from 16 bytes to 4 bytes +] \ No newline at end of file