Skip to content
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

Make FullVersion a superset of Version #70

Merged
merged 4 commits into from
Dec 12, 2023

Conversation

sirhcel
Copy link
Contributor

@sirhcel sirhcel commented Dec 10, 2023

Thank you for this awesome crate! While working on some MSRV checks on top of it, I was in the need of having rust_version also available in FullVersion. At the end I went a bit further and this PR

  • Adds rust_version to FullVersion
  • Also adds the remaining fields from Version into FullVersion as the naming suggests the latter being a superset of the former to me
  • Factors out the conversion from Version to FullVersion into a shared implementation of From for not needing to keep the details in sync in both clients manually
  • Cleans up the markup of two links in the docs (pointed out by rustdoc

Copy link
Owner

@theduke theduke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Requested a small change.

src/types.rs Outdated Show resolved Hide resolved
@sirhcel sirhcel force-pushed the full-version-superset-of-version branch from fbdf35a to aec2197 Compare December 12, 2023 10:36
@sirhcel sirhcel requested a review from theduke December 12, 2023 10:39
@theduke theduke merged commit 76d50bf into theduke:main Dec 12, 2023
2 checks passed
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.

2 participants