From 1ac33de0edf30c7891fe01835e67eaf0e355b72b Mon Sep 17 00:00:00 2001 From: Raphael Amorim Date: Thu, 9 Apr 2026 10:42:06 +0200 Subject: [PATCH] small update for build on windows --- .cargo/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.51.2