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

add FromStr and Display impls for TargetKind and CrateType #276

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

sunshowers
Copy link
Contributor

I'd like to use the string representations in a few places (particularly to avoid exposing cargo-metadata types as a public dependency). Add FromStr and Display impls.

Closes #275.

I'd like to use the string representations in a few places (particularly to
avoid exposing cargo-metadata types as a public dependency). Add `FromStr` and
`Display` impls.
@sunshowers
Copy link
Contributor Author

The clippy issue is due to an unrelated new lint in Rust 1.83, and the 1.73 test issue is due to one of the dependencies bumping its MSRV.

@oli-obk oli-obk closed this Dec 3, 2024
@oli-obk oli-obk reopened this Dec 3, 2024
@oli-obk
Copy link
Owner

oli-obk commented Dec 3, 2024

Slightly sad about the duplication of string <-> variant mapping, but not worth a macro yet.

@oli-obk oli-obk merged commit 8f4c3a8 into oli-obk:main Dec 3, 2024
7 of 12 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.

Add Display impls for CrateType and TargetKind?
2 participants