It seems like a half-implemented feature, where the user is supposed to be able to specify the root filename for the module (typically, and by default, mod.rs), but the mod_file parameter never gets read. It seems like a bug that somebody may want to fix.
In the meantime we can remove this argument to make the rules work with bazel 7 without changing the semantics.
Bazel 7 gives an error for this code.
It seems like a half-implemented feature, where the user is supposed to be able to specify the root filename for the module (typically, and by default,
mod.rs
), but themod_file
parameter never gets read. It seems like a bug that somebody may want to fix.In the meantime we can remove this argument to make the rules work with bazel 7 without changing the semantics.