--- build/rust/rust_macro.gni.orig 2025-05-20 09:16:26 UTC +++ build/rust/rust_macro.gni @@ -16,6 +16,9 @@ template("rust_macro") { forward_variables_from(invoker, TESTONLY_AND_VISIBILITY) proc_macro_configs = invoker.configs target_type = "rust_proc_macro" + + # Macros are loaded by rustc and shouldn't use chrome's allocation routines. + no_allocator_crate = true } }