Skip to content

Add support for installing cargo packages in Brewfile #21194

@leighmcculloch

Description

@leighmcculloch

Verification

Provide a detailed description of the proposed feature

Add support for installing cargo crates in Brewfile. Include the ability to specify cargo crates in the Brewfile.

For example:

brew "tree"
brew "node"
rust "cargo-expand"

The Brewfile already supports a variety of installation types, with mas, cask, vscode, and most recently go (#20645).

Tooling written in Rust and published to crates.io is available via the cargo install --locked <crate> command. It'd be convenient if the Brewfile bundled and ensures rust applications were installed too.

What is the motivation for the feature?

To expand the convenience of Brewfile so that it manages the bundling / setting up of more applications.

How will the feature be relevant to at least 90% of Homebrew users?

Rust is a common language for so much tooling. When moving between machines it's so helpful that Brewfile manages the programs a developer expects to have on hand, but any tooling that exists in the cargo/rust ecosystem cannot be installed via Brewfile.

What alternatives to the feature have been considered?

Not do this. Manage the installation of rust/cargo tools manually or via some other means.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions