Cargo VS RustCMake

Compare Cargo vs RustCMake and see what are their differences.

RustCMake

An example project showing usage of CMake with Rust (by SiegeLord)
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Cargo RustCMake
267 -
12,639 109
1.2% -
10.0 0.0
4 days ago over 6 years ago
Rust CMake
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

Posts with mentions or reviews of Cargo. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-09-25.
  • Rewriting Rust
    23 projects | news.ycombinator.com | 25 Sep 2024
    Just look at the proposal to add an --only-dependencies flag to cargo-build.

    https://github.com/rust-lang/cargo/issues/2644

    Its a clusterfuck of people misdirecting the discussion, the maintainers completely missing the point, and in the end its still not even been allowed to start.

  • Things I know about Git commits
    1 project | news.ycombinator.com | 12 Jul 2024
    The more I've been doing open source maintenance and contributions where there isn't as much context between the code author and reviewer, the more I've been pushing for a little more than this.

    - Add tests in a commit *before* the fix. They should pass, showing the behavior before your change. Then, the commit with your change will update the tests. The diff between these commits represents the change in behavior. This helps the author test their tests (I've written tests thinking they covered the relevant case but didn't), the reviewer to more precisely see the change in behavior and comment on it, and the wider community to understand what the PR description is about.

    - Where reasonable, find ways to split code changes out of feature / fix commits into refactor commits. Reading a diff top-down doesn't tell you anything; you need to jump around a lot to see how the parts interact. By splitting it up, you can more quickly understand each piece and the series of commits tells a story of how the feature of fix came to be.

    - Commits are atomic while PRs tell a story, as long as it doesn't get too big. Refactor are usually leading towards a goal and having them tied together with that goal helps to provide the context to understand it all. However, this has to be balanced with the fact that larger reviews mean more things are missed on each pass and its different things on each pass, causing a lot of "20 rounds of feedback in and I just noticed this major problem".

    As an example of these is a recent PR of mine against Cargo: https://github.com/rust-lang/cargo/pull/14239

    In particular, the refactors leading up to the final change made it so the actual fix was a one line change. It also linked out to the prior refactors that I split out into separate PRs to keep this one smaller.

  • Crates-io 0.32.0 (accidentally) downgraded and published again as 0.31.1? (2020)
    1 project | news.ycombinator.com | 28 May 2024
  • Surprisingly Powerful – Serverless WASM with Rust Article 1
    5 projects | dev.to | 27 Apr 2024
    Installing Trunk happens through Cargo. Remember, Cargo is more than a package manager, it also supports sub-commands.
  • Understanding Dependencies in Programming
    4 projects | dev.to | 14 Apr 2024
    Dependency Management in Other Languages: We've discussed Python and Node.js in this article, but dependency management is a universal concept in programming. Exploring how you handle dependencies in other languages like Java, C#, or Rust could be beneficial. (I think Rust's cargo is an excellent example of a package manager.)
  • Cargo Script
    1 project | news.ycombinator.com | 26 Feb 2024
  • Scriptisto: "Shebang interpreter" that enables writing scripts in compiled langs
    3 projects | news.ycombinator.com | 6 Feb 2024
    Nice hack! Would it have been possible back then to use cargo to pull in some dependencies?

    The clean solution of cargo script is here: https://github.com/rust-lang/cargo/issues/12207

  • Making Rust binaries smaller by default
    8 projects | news.ycombinator.com | 23 Jan 2024
    Yes, I am sure this is going to be a part of Rust 1.77.0 and it will release on 21st March. I say that because of the tag in the PR (https://github.com/rust-lang/cargo/pull/13257#event-11505613...).

    I'm no expert on Rust compiler development, but my understanding is that all code that is merged into master is available on nightly. If they're not behind a feature flag (this one isn't), they'll be available in a full release within 12 weeks of being merged. Larger features that need a lot more testing remain behind feature flags. Once they are merged into master, they remain on nightly until they're sufficiently tested. The multi-threaded frontend (https://blog.rust-lang.org/2023/11/09/parallel-rustc.html) is an example of such a feature. It'll remain nightly only for several months.

    Again, I'm not an expert. This is based on what I've observed of Rust development.

  • You can't do that because I hate you
    9 projects | news.ycombinator.com | 28 Dec 2023
    The author provides very surface-level criticism of two Rust tools, but they don't look into why those choices were made.

    With about five minutes of my time, I found out:

    wrap_comments was introduced in 2019 [0]. There are bugs in the implementation (it breaks Markdown tables), so the option hasn't been marked as stable. Progress on the issue has been spotty.

    --no-merge-sources is not trivial to re-implement [1]. The author has already explained why the flag no longer works -- Cargo integrated the command, but not all of the flags. This commit [2] explains why this functionality was removed in the first place.

    Rust is open source, so the author of this blog post could improve the state of the software they care about by championing these issues. The --no-merge-sources error message even encourages you to open an issue, presumably so that the authors of Cargo can gauge the importance of certain flags/features.

    You could even do something much simpler, like adding a comment to the related issues mentioning that you ran into these rough edges and that it made your life a little worse, or with a workaround that you found.

    Alternatively, you can continue to write about how much free software sucks.

    [0]: https://github.com/rust-lang/rustfmt/issues/3347

    [1]: https://github.com/rust-lang/cargo/pull/10344

    [2]: https://github.com/rust-lang/cargo/commit/3842d8e6f20067f716...

  • Cargo has never frustrated me like npm or pip has. Does Cargo ever get frustrating? Does anyone ever find themselves in dependency hell?
    13 projects | /r/rust | 6 Dec 2023
    You try to use it as a part of multi-language project, with an external build tool to tie it all together, and you discover that --out-dir flag is still not stabilized over some future compatibility concerns.

RustCMake

Posts with mentions or reviews of RustCMake. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning RustCMake yet.
Tracking mentions began in Dec 2020.

What are some alternatives?

When comparing Cargo and RustCMake you can also consider the following projects:

Clippy - A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/

overflower - A Rust compiler plugin and support library to annotate overflow behavior

python-cmake-buildsystem - A cmake buildsystem for compiling Python

RustScan - 🤖 The Modern Port Scanner 🤖

corrosion - Marrying Rust and CMake - Easy Rust and C/C++ Integration!

cargo-check

cmake-examples - Useful CMake Examples

crates.io - The Rust package registry

polly - :wrench: Collection of CMake toolchain files and scripts for cross-platform build and CI testing (GCC, Visual Studio, iOS, Android, Clang analyzer, sanitizers etc.)

cargo-dot - Generate graphs of a Cargo project's dependencies

Vcpkg - C++ Library Manager for Windows, Linux, and MacOS

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you konow that Rust is
the 5th most popular programming language
based on number of metions?