cargo-raze VS Metals

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

cargo-raze

Generate Bazel BUILD from Cargo dependencies! (by google)

Metals

Scala language server with rich IDE features 🚀 (by scalameta)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
cargo-raze Metals
6 18
475 2,023
0.6% 1.2%
1.7 9.8
23 days ago 2 days ago
Rust Scala
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.

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.

Metals

Posts with mentions or reviews of Metals. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-24.
  • Reconnecting with Scala. What's new?
    7 projects | /r/scala | 24 May 2023
    Links: - https://dotty.epfl.ch/ - https://scala-native.org/en/stable/ - https://www.scala-js.org/ - https://typelevel.org/ - https://zio.dev/ - https://github.com/scala-native/scala-native/pull/3120 - https://github.com/lampepfl/dotty/pull/16517 - https://dotty.epfl.ch/docs/reference/experimental/index.html - https://scala-cli.virtuslab.org/ - https://scalameta.org/metals/ - https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html - https://www.scala-lang.org/blog/2023/04/18/faster-scalajs-development-with-frontend-tooling.html - https://www.scala-lang.org/blog/2022/08/17/long-term-compatibility-plans.html
  • Tmux, NeoVim, etc. to write pure Kotlin code?
    2 projects | /r/Kotlin | 30 Apr 2023
    You might want to look at Scala, they have proper LSP support with metals which means you can write your code in vscode, neovim, emacs, or even fleet (the new jetbrains text editor).
  • New plugin to support LSP file operations
    6 projects | /r/neovim | 9 Jan 2023
    Please write in the comments if you know of any language servers I should test it with. Currently I tested only metals and rust-analyzer.
  • Why are all the guides on using LSP functionality full of bloat?
    3 projects | /r/neovim | 26 Dec 2022
    If you are using nvim-lspconfig you can pass the settings as a Lua table to the setup function. For example, here are may metals settings:
  • Type-Signature.com
    5 projects | news.ycombinator.com | 11 Nov 2022
  • What is the one thing you need everyday to make your job easier?
    2 projects | /r/AskMen | 16 Oct 2022
    Bazel support in Metals. I didn't spend all that time figuring out and adjusting Emacs/Spacemacs and making my workflow (almost) mouse-free just to scrap my config and switch to IDEA's rodent infested ways.
  • Scala 2.13.9 is here
    3 projects | /r/scala | 21 Sep 2022
    There is one small issue involving code completion returning inappropriate completions in some cases; https://github.com/scalameta/metals/pull/4414 will fix it, once it's included in a release. Perhaps that's the PR you saw?
  • Scala Isn't Fun Anymore
    9 projects | news.ycombinator.com | 13 Sep 2022
    It is, by quite a bit.

    While the "Scala IDE" project is dead for all practical purposes, IntelliJ IDEA's Scala plugin is actually pretty amazing. There's also a VisualStudio plugin that does pretty much the same and is advancing by leaps and bounds. There are also interconnecting projects that provide i.e. language server or build server that are reused by other projects. It's pretty modular. Metals (https://scalameta.org/metals/) is amazing.

    In general the language has become a wee bit faster to build, there was good progress with build times during the 2.12/2.13 cycles.

    With Scala3 the language got a bit simpler; concepts that were implemented explicitly using (hehe) implicits got their own keywords and a lot of the opinionated boilercode that cause a lot of debates is now generated during complication and hidden. A lot of "standardization" has occurred.

  • A Python-compatible statically typed language erg-lang/erg
    27 projects | news.ycombinator.com | 13 Aug 2022
  • Starting with Scala: editor and version choice?
    1 project | /r/scala | 7 Jun 2022
    IntelliJ has its own BSP. The other one is Metals. You can use it with many IDEs (vim, emacs, vscode, atom,...). Use it with emacs if you're comfortable with it.

What are some alternatives?

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

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

intellij-plugins - Open-source plugins included in the distribution of IntelliJ IDEA Ultimate and other IDEs based on the IntelliJ Platform

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

Jupyter Scala - A Scala kernel for Jupyter

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

sbt - sbt, the interactive build tool

dmd - dmd D Programming Language compiler

bloop - Bloop is a build server and CLI tool to compile, test and run Scala fast from any editor or build tool.

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.

Scalastyle - scalastyle

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

scalajs-benchmark - Benchmarks: write in Scala or JS, run in your browser. Live demo: