From 0d8a4f4d102d5a8a307805625455a16a1736a0f3 Mon Sep 17 00:00:00 2001 From: Matthias Ahouansou Date: Sat, 15 Mar 2025 00:31:47 +0000 Subject: [PATCH] switch to env var for enabling ruma exhaustive types this is more reliable than rustflags, since if RUST_FLAGS is set, then this setting would be ignored --- .cargo/config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 1089e6c..4c64d1c 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,2 @@ -[build] -rustflags = ["--cfg=ruma_unstable_exhaustive_types"] +[env] +RUMA_UNSTABLE_EXHAUSTIVE_TYPES = "1"