How to configure rustfmt in the bazel rule_rust?

163 Views Asked by At

I noticed bazel doesn't pick up rustfmt.toml from the project/target folder. What is the way to edit fmt parameters for bazel build?

1

There are 1 best solutions below

0
On

I think a solution to you problem is described here. When you follow the instructions you code can be formatted using:

bazel run :format_fix