(Oh and btw, proc macros also run arbitrary code.)
(Oh and btw, proc macros also run arbitrary code.)
(It mostly boils down to "somebody needs to do it". I'd really like proc macros precompiled to wasm by crates.io…)
wasm has the additional benefits of allowing something like pre-compiling binaries once on a central server and thus skipping the CPU cycles for compiling all the macro crate dependencies on every crate compile. So even the people who don't care much about the security benefits have a reason. I'm kind of the "don't care about security" side because (as said elsewhere) it's trivial (https://docs.rs/ctor/latest/ctor/) for any macro to insert code that will run when compiled binaries/tests are run. You need the entire thing in a sandbox anyway, not just the macros, and that's something that can't be provided by cargo by default.