mirror of
https://github.com/fosskers/cargo-aur.git
synced 2026-03-10 07:42:41 -05:00
[PR #11] [CLOSED] Added optional depends and optdepends keys
#22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosskers/cargo-aur/pull/11
Author: @margual56
Created: 4/18/2022
Status: ❌ Closed
Base:
master← Head:master📝 Commits (2)
967c076Added optional depends and optdepends8e3ce00Added optional table📊 Changes
1 file changed (+47 additions, -0 deletions)
View changed files
📝
src/main.rs(+47 -0)📄 Description
Why?
dependsandoptdependsare often needed when creating an AUR package. Not "cargo" dependencies, but other programs such asmpvto play videos.How?
This pull request adds two optional manifest keys:
dependsandoptdepends, which are arrays of strings containing the name of the program's dependencies.Since they are optional, this version will remain backwards-compatible. Empty arrays will be generated if not present in the Cargo.toml
Possible improvements
dependsandoptdependsare not valid cargo package keys).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.