Using Bazel to build a new Rust project
(fahhem.com)
Looking around, it seems that everyone uses Cargo for new Rust projects, then teams will switch over to Bazel if they need to. For me, I have an existing Bazel project that I'm adding Rust to, so I don't want to start with Cargo, so in this post I'll document how to use Bazel to build a new Rust project. Since this is an existing project, and I haven't upgraded to using bzlmod yet, I'll be using the WORKSPACE file.
Looking around, it seems that everyone uses Cargo for new Rust projects, then teams will switch over to Bazel if they need to. For me, I have an existing Bazel project that I'm adding Rust to, so I don't want to start with Cargo, so in this post I'll document how to use Bazel to build a new Rust project. Since this is an existing project, and I haven't upgraded to using bzlmod yet, I'll be using the WORKSPACE file.