Skip to content

chore: Use cargo macros across the repo #3111

@joebonrichie

Description

@joebonrichie

ypkg now provides standardized cargo macros for rust packages:

%cargo_fetch, %cargo_build, %cargo_install, %cargo_test

Note that %cargo_install can take an additional argument if the binary name does not match the package name e.g. %cargo_install mycustombinary

See d44c520 as an example

For an new packagers wishing to learn the Solus packaging system, this would be a good opportunity to do so. See the full list yourself by installing the ripgrep package and running the following ripgrep (rg) command from the root of this repository:

rg --files-with-matches "cargo build" -g '*package.yml' | sort

The list

37 21 7 1 package left(!)

  • rav1el

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueIssue that is good for someone new to the Solus project to try to tackleTopic: ToolingTools and scripts

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions