cargo-deb VS cargo-ebuild

Compare cargo-deb vs cargo-ebuild and see what are their differences.

cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml (by mmstick)

cargo-ebuild

cargo extension that can generate ebuilds using the in-tree eclasses (by cardoe)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
cargo-deb cargo-ebuild
7 6
629 79
- -
1.1 0.9
over 2 years ago over 2 years ago
Rust Rust
MIT License GNU General Public License v3.0 or later
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-deb

Posts with mentions or reviews of cargo-deb. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-07.
  • GitUI
    5 projects | news.ycombinator.com | 7 Jan 2024
    I mean, there's tools that make it easy to make a .deb https://crates.io/crates/cargo-deb

    The Rust Project itself had put a lot of work into making sure that Rust and Rust-using programs could get into Debian by working with Debian folks to address issues.

    I suspect that you've run into an anecdotal pattern, but I'm not sure that it is more than that.

  • What are some useful tools for Rust?
    10 projects | /r/rust | 3 May 2023
    I use Cargo deb to create Debian / Ubuntu / ... package files.
  • Introducing runst: A dead simple notification daemon written in Rust
    6 projects | /r/rust | 5 Mar 2023
    As a suggestion if you want to get a lot of users you could make a .deb file that packages the binary and a systemd service file. Using cargo-deb it's pretty trivial, the hardest part would be writing your systemd service file and you can probably just copy the dunst.service file with minimal modification:
  • How can I codesign executables for different platforms?
    1 project | /r/rust | 14 Feb 2023
  • Have you guys tried cargo-deb? Amazing!
    3 projects | /r/rust | 17 May 2022
    https://crates.io/crates/cargo-deb https://github.com/kornelski/cargo-deb
  • Rustup, Cargo, Rustc??
    2 projects | /r/rust | 1 Mar 2021
    cargo install does provide different options to change the installation dir (https://doc.rust-lang.org/cargo/commands/cargo-install.html) but I am uncertain, if there could be accociated issues. An alternative could be tools like https://github.com/mmstick/cargo-deb or https://github.com/iqlusioninc/cargo-rpm that can automatically create packages which can be used for a proper installation /usr/bin/ using your distributions packaging system.
  • Debian Discusses Vendoring–Again
    5 projects | news.ycombinator.com | 13 Jan 2021
    Cargo already has one: https://crates.io/crates/cargo-deb

cargo-ebuild

Posts with mentions or reviews of cargo-ebuild. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-04.
  • diziet | Debian’s approach to Rust
    2 projects | /r/rust | 4 Jan 2022
    In Gentoo, Rust crates are just normal files to be downloaded in order to build a given package. The package pins (and checks the hashes of) the crate deps, and builds using cargo --offline. There is no serde/clap/etc packages, just ripgrep/librsvg/etc packages. There is no need to patch all packages to use the same serde crate version. Packaging a Rust program in gentoo is pretty much automatic.
  • How do I adjust fan curves on AMDGPU?
    5 projects | /r/Gentoo | 11 Nov 2021
    Then, I went through like 3 different pages on gentoo and learned how to make my own rebuild using this... But after setting up my custom repo and making sure it had the right permissions, manifest, etc. the ebuild failed on account of not being able to find the Config.yoml file it needed, which exists in the directory I built the ebuild from. I think I am just SOL on this, and will have to probably find a different approach
  • Cooperative Package Management for Python
    5 projects | news.ycombinator.com | 1 Sep 2021
    FWIW it's worth for portage (Gentoo) there is g-sorcery[0], which can create ebuilds for Emacs (m/elpa) and python packages automatically. Similarly there is also cargo-ebuild[1] which can create ebuilds for rust programs/libraries, including a list of all dependencies with hashes.

    I've successfully used cargo-ebuild in the past to create ebuilds automatically, it's a breeze. I'd be surprised if similar tools didn't exist for deb/rpm based distros.

    [0]:https://github.com/jauhien/g-sorcery

    [1]: https://github.com/cardoe/cargo-ebuild

  • Can Anybody Help Me With My Custom Ebuild for xplr?
    4 projects | /r/Gentoo | 25 Jun 2021
    I'm working on a custom repository where I intend to write ebuild files for packages that's not supported by Gentoo's repository. Right now, I'm trying to write an ebuild file for xplr, which is a Rust project that uses the Cargo build system. Initially, I used the cargo-ebuild tool, which generated the file xplr-0.14.3.ebuild.
  • Wrote my first ebuild and created an overlay
    1 project | /r/Gentoo | 23 Feb 2021
    Maybe you already know, but specifically for making Rust ebuilds and filling the CRATES variable there's a tool cargo-ebuild to automatically extract that from Cargo.toml.
  • In the full retrospect what are some pros and cons on converting to gentoo from the blue distro?
    1 project | /r/Gentoo | 28 Jan 2021
    I have zero issues with Gentoo's Rust and Rust-using packages. I use rustup's Rust and cargo install for development, and maintain a gentoo package using cargo ebuild.

What are some alternatives?

When comparing cargo-deb and cargo-ebuild you can also consider the following projects:

cargo-update - A cargo subcommand for checking and applying updates to installed executables

cargo-bitbake - cargo extension that can generate BitBake recipes utilizing the classes from meta-rust

cargo-make - Rust task runner and build tool.

cargo-release - Cargo subcommand `release`: everything about releasing a rust crate.

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

Rustup - The Rust toolchain installer

rustfmt - Format Rust code

cargo-benchcmp - A small utility to compare Rust micro-benchmarks.

clog-cli - Generate beautiful changelogs from your Git commit history

cargo-modules - Visualize/analyze a Rust crate's internal structure