Skip to content

library: Deserialize version and git commit hash from the rustup TOML manifests #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

lambdageek
Copy link

The TOML manifest has these fields, but the PackageTargets type does not deserialize them:

[pkg.rust]
version = "1.88.0-nightly (e9f8103f9 2025-05-07)"
git_commit_hash = "e9f8103f93f8ce2fa2c15c0c6796ec821f8ae15d"
/// Package info.
#[derive(Debug, Serialize, Deserialize, PartialEq)]
pub struct PackageTargets {
    /// Maps targets onto package availability info.
    #[serde(rename = "target")]
    pub targets: HashMap<String, PackageInfo>,
}

This PR updates PackageTargets to include the version and git_commit_hash fields

Fixes #58

@lambdageek lambdageek marked this pull request as ready for review May 16, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustup-available-packages ignores the "version" and "git_commit_hash" rustup manifest fields
1 participant