bazel-buildfarm VS cargo-raze

Compare bazel-buildfarm vs cargo-raze and see what are their differences.

bazel-buildfarm

Bazel remote caching and execution service (by bazelbuild)

cargo-raze

Generate Bazel BUILD from Cargo dependencies! (by google)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
bazel-buildfarm cargo-raze
4 6
624 475
4.5% 0.6%
9.5 1.7
5 days ago 24 days ago
Java Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

bazel-buildfarm

Posts with mentions or reviews of bazel-buildfarm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-01.
  • Distcc: A fast, free distributed C/C++ compiler
    11 projects | news.ycombinator.com | 1 Jun 2023
    It can be. By default it is local.

    But it has protobufs interfaces (IIRC), so a distributed build farm would generate the grpc endpoints for their implementation and then you tell bazel on the command line (or via .bazelrc) the address of the build farm it can use.

    There's a couple of projects that implement the distributed/grpc part, the main one is https://github.com/bazelbuild/bazel-buildfarm

  • Rust Is Portable
    10 projects | news.ycombinator.com | 27 Jul 2022
    Not sure what to say concerning buildfarm's remote execution.

    Reading an issue I've opened 1y ago [1], seems the backend requires the client to have a specific gcc version.

    That's a strong limitation imho.

    [1] https://github.com/bazelbuild/bazel-buildfarm/issues/545

  • Running container_push inside a container
    3 projects | /r/bazel | 23 Jul 2022
    You can also set up a remote build service that uses the same environment you run the containers in using something like https://github.com/bazelbuild/bazel-buildfarm
  • Distributed build clusters
    4 projects | /r/androiddev | 10 May 2022
    Currently migrating to Bazel + bazel remote execution via Bazel buildfarm. Bazel has native support for build clusters.

cargo-raze

Posts with mentions or reviews of cargo-raze. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-14.
  • NixOS: Declarative Builds and Deployments
    13 projects | news.ycombinator.com | 14 Jan 2024
    The same reason Bazel builds avoid using Cargo when building Rust software, so I'll describe why Bazel would do this:

    - Bazel wants to cache remote resources, like each respective crate's source files.

    - Bazel then wants to build each crate in a sandbox, and cache the build artifacts

    This is an established practice, and Nix wants to drive the build for the same reasons.

    See:

    - https://github.com/bazelbuild/rules_rust

    - https://github.com/google/cargo-raze

  • Rust Is Portable
    10 projects | news.ycombinator.com | 27 Jul 2022
  • Regarding what happened to P0447: Why?
    3 projects | /r/cpp | 7 Feb 2022
    I can make much more sense of C++ code to ensure that two build systems produce the same effect than I can parse and learn two completely unconnected programming languages deeply enough to do the same. I can unit-test core routines. I can as easily extract core logic into shared (configuration) files etc. The benefit of a standard is not to discourage alternatives but rather to agree on definitive semantics and shared and common needs (that is: in this case needs for interfaces to the compiler/linker). The implementation and general availabilty is just one of the by-product. The ability to do introspection in common terms is maybe the most consequential other product, and this is critical for 'transpiling' to other build systems and writing automated adapters such as the one that bazel is recommend for cargo's dependency management.
  • What is your favorite programming language?
    9 projects | /r/archlinux | 20 Dec 2021
    Cargo is not that tightly coupled with Rust. You can absolutely use bare rustc, and in fact people do that with other build systems like Bazel.
  • Six Years of Rust
    3 projects | /r/programming | 15 May 2021
    Interesting, aren't the community-driven crates for these areas satisfactory enough? There's PROST and tonic, and quite well-used. I don't know about Bazel though, but I found this. Feel free to correct me on this subject, I admit I don't know that much about it.
  • Integrating Rust Into the Android Open Source Project | Google Security Blog
    2 projects | /r/rust | 11 May 2021
    There is a project to generate Bazel BUILD files from Cargo.toml.

What are some alternatives?

When comparing bazel-buildfarm and cargo-raze you can also consider the following projects:

llama

prost - PROST! a Protocol Buffers implementation for the Rust Language

gnu-parallel - A clone of GNU Parallel (git://git.savannah.gnu.org/parallel.git)

tonic - A native gRPC client & server implementation with async/await support.

mainframer - Tool for remote builds. Sync project to remote machine, execute command, sync back.

prost - PROST! a Protocol Buffers implementation for the Rust Language

pyroscope-rs - Pyroscope Profiler for Rust. Profile your Rust applications.

dmd - dmd D Programming Language compiler

sccache - Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.

rules_closure - Closure rules for Bazel

Metals - Scala language server with rich IDE features 🚀