[PR #11] [CLOSED] Added optional depends and optdepends keys #22

Closed
opened 2026-03-01 09:11:24 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosskers/cargo-aur/pull/11
Author: @margual56
Created: 4/18/2022
Status: Closed

Base: masterHead: master


📝 Commits (2)

  • 967c076 Added optional depends and optdepends
  • 8e3ce00 Added optional table

📊 Changes

1 file changed (+47 additions, -0 deletions)

View changed files

📝 src/main.rs (+47 -0)

📄 Description

asciicast

Why?

depends and optdepends are often needed when creating an AUR package. Not "cargo" dependencies, but other programs such as mpv to play videos.

How?

This pull request adds two optional manifest keys: depends and optdepends, 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

  • When compiling, cargo warns about "unused manifest keys" (because depends and optdepends are not valid cargo package keys).

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosskers/cargo-aur/pull/11 **Author:** [@margual56](https://github.com/margual56) **Created:** 4/18/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`967c076`](https://github.com/fosskers/cargo-aur/commit/967c076a3522bdec7b170fdb5c4cfaf9203eebd3) Added optional depends and optdepends - [`8e3ce00`](https://github.com/fosskers/cargo-aur/commit/8e3ce00f4430677a018d753d5786544d1fa6272d) Added optional table ### 📊 Changes **1 file changed** (+47 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/main.rs` (+47 -0) </details> ### 📄 Description [![asciicast](https://asciinema.org/a/7cQh7i97Cu3uPdbGfebjPPxnS.svg)](https://asciinema.org/a/7cQh7i97Cu3uPdbGfebjPPxnS) ## Why? `depends` and `optdepends` are often needed when creating an AUR package. Not "cargo" dependencies, but other programs such as `mpv` to play videos. ## How? This pull request adds two optional manifest keys: `depends` and `optdepends`, 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 - When compiling, cargo warns about "unused manifest keys" (because `depends` and `optdepends` are not valid cargo package keys). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-01 09:11:24 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cargo-aur#22