In rust-mode 1.0.6 setting rust-rustfmt-switches in .dir-locals.el has no effect.
E.g., ("--edition" "2024) gets disregarded. (value that's been set globally gets read on save, in my case it was ("--edition" "2018").
It seems possible to configure rust-fmt per-project by setting nil, in which case it reads config from rustfmt.toml, and that's the default now.
Still, may be nice to allow per-project configuration via .dir-locals.el?
In rust-mode 1.0.6 setting
rust-rustfmt-switchesin .dir-locals.el has no effect.E.g., ("--edition" "2024) gets disregarded. (value that's been set globally gets read on save, in my case it was ("--edition" "2018").
It seems possible to configure rust-fmt per-project by setting
nil, in which case it reads config from rustfmt.toml, and that's the default now.Still, may be nice to allow per-project configuration via .dir-locals.el?