thundergolfer / example-bazel-monorepo

πŸŒΏπŸ’š Example Bazel-ified monorepo, supporting Golang, Java, Python, Scala, and Typescript
https://buildkite.com/thundergolfer-inc/the-one-true-bazel-monorepo
MIT License
328 stars 33 forks source link

Incorporate rustfmt into project linting #29

Open thundergolfer opened 4 years ago

thundergolfer commented 4 years ago

Description

Thanks to https://github.com/bazelbuild/rules_rust/commit/fe50d3b54aecbaeac48abdc2ca7cd00a94969e15#diff-d5825ae12e45363c451d288f385bfda1L147 rustfmt is now easily available in the WORKSPACE. See:

bazel run @rust_darwin_x86_64//:rustfmt -- --help

Will have to use a select to handle the fact that the external repo will be different on CI (Linux).