Using Bazel to build a new Rust project

11 pointsposted 16 hours ago
by fahhem

6 Comments

ramon156

6 hours ago

Out of curiosity, why do people switch to bazel? I don't have much experience with it, so maybe I'm missing out?

chipdart

3 hours ago

> Out of curiosity, why do people switch to bazel?

From what I've read, even for C++ projects Bazel is pushed by FANG-driven cargo cult mixed with FOMO.

Even for its internal use, Bazel sounds an awful lot like a promotion-oriented project.

lesuorac

42 minutes ago

I mean if you're in the situation of the author where you already have a bazel project why add Cargo?

There's a lot of nice things about bazel like being able to embed optimized JS into an iOS app built from transpiled Java code. But like mdhb points out, if you're not doing a lot of stuff with multiple languages you are probably better off with just that language's recommended build tool.

rwmj

4 hours ago

It has caused nothing but problems wherever I've seen it being used.

ithkuil

3 hours ago

Yep. The only way to reap the benefits with bazel is to have somebody who continuously deals with the problems.

This is not that different from many other aspects of software engineering, but as on those other areas you need to run a cost-benefit analysis

mdhb

3 hours ago

Large cross language mono repos is what it was built for and for that particular use case I don’t think there is anything better.

Everything outside of that use case however it probably isn’t the right choice currently but their stated goal is to eventually become the obvious choice in a lot of other scenarios too.