geiger-rs / cargo-geiger

Detects usage of unsafe Rust in a Rust crate and its dependencies.
https://crates.io/crates/cargo-geiger
1.41k stars 66 forks source link

Fix build and update to syn v2 #518

Open mleonhard opened 7 months ago

mleonhard commented 7 months ago

This PR fixes https://github.com/geiger-rs/cargo-geiger/issues/517 . Here's what it does

Problems in this PR:

mleonhard commented 7 months ago

This PR keeps growing and growing as I fix more tests. I would love to hear suggestions for splitting it up. It would also be great if there was a way to get syn v2 to parse the same way as v1 so expression counts would match.

pinkforest commented 7 months ago

We're re-writing much of the core incl. to break the cargo-reliance so messy PR is ok for now to fix the techdebt np.

Thanks so much for doing this :rocket: