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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace yaml-rust with actively maintained yaml-rust2 #538

Closed
wants to merge 2 commits into from

Conversation

d3rpp
Copy link

@d3rpp d3rpp commented May 1, 2024

It would be worth investigating if the dependency is required at all, this simply replaces it with the crate key in the Cargo.toml with yaml-rust2.

TODO: update changelog when everything is sorted out 馃憤

@Enselic Enselic added this to the syntect 6.0.0 milestone May 2, 2024
@d3rpp
Copy link
Author

d3rpp commented May 6, 2024

Update: I was wrong it is in fact used 馃憤

Cargo.toml Outdated
@@ -18,7 +18,7 @@ exclude = [
]

[dependencies]
yaml-rust = { version = "0.4.5", optional = true }
yaml-rust = { version = "0.4.5", optional = true, crate = "yaml-rust2" }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you point me to documentation on this property please? I can't find it at https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html

Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like it does not work. CI says: warning: unused manifest key: dependencies.yaml-rust.crate

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we can use one of the other PRs

Copy link
Author

Choose a reason for hiding this comment

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

https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml

I have made a mistake in the PR
the key this PR is attempting to use is called package not crate, my apologies.

Copy link
Collaborator

Choose a reason for hiding this comment

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

No worries, I think we should use #544 though, it looks similar to the first PR to change to yaml2

Copy link
Author

@d3rpp d3rpp May 30, 2024

Choose a reason for hiding this comment

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

No worries, I think we should use #544 though, it looks similar to the first PR to change to yaml2

#544 seems like a cleaner change than this PR, so I agree that it would make sense 馃憤

@d3rpp
Copy link
Author

d3rpp commented May 30, 2024

Closing as #544 does the fix in a better fashion

@d3rpp d3rpp closed this May 30, 2024
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.

None yet

2 participants