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

fix: remove now-unnecessary proc-macro-hack crate usage #256

Merged
merged 2 commits into from Jul 15, 2022
Merged

fix: remove now-unnecessary proc-macro-hack crate usage #256

merged 2 commits into from Jul 15, 2022

Conversation

ErichDonGubler
Copy link
Contributor

@ErichDonGubler ErichDonGubler commented Jul 15, 2022

Resolves #255.

This resolves an issue with Windows Defender identifying proc-macro-hack as threats. It also sheds a depedency that is no longer necessary, now that the MSRV of this crate is 1.46 and proc-macro-hack is only useful for providing support for Rust versions 1.31 through 1.45. Per upstream:

Note: As of Rust 1.45 this crate is superseded by native support for #[proc_macro] in expression position. Only consider using this crate if you care about supporting compilers between 1.31 and 1.45.

@ErichDonGubler
Copy link
Contributor Author

ErichDonGubler commented Jul 15, 2022

Marking as a draft PR, since apparently I haven't gotten things to recompile successfully yet with a sample upstream crate like palette.

@ErichDonGubler
Copy link
Contributor Author

Aha, figured it out. I forgot that path dependencies are necessary until this crate releases after this particular PR gets merged.

@ErichDonGubler ErichDonGubler marked this pull request as ready for review July 15, 2022 19:12
@ErichDonGubler
Copy link
Contributor Author

ErichDonGubler commented Jul 15, 2022

Looks like I have some tests to fix -- will take a look next week. :)

EDIT: NVM, it was easier than I thought, hehe!

Resolves <#255>.

This resolves an issue with Windows Defender identifying `proc-macro-hack` as threats. It also sheds
a depedency that is no longer necessary, now that the MSRV of this crate is 1.46 and
`proc-macro-hack` is only useful for providing support for Rust versions 1.31 through 1.45. Per
[upstream](https://github.com/dtolnay/proc-macro-hack):

> **Note:** _As of Rust 1.45 this crate is superseded by native support for #\[proc\_macro\] in
> expression position. Only consider using this crate if you care about supporting compilers between
> 1.31 and 1.45._
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@JohnTitor JohnTitor merged commit a85f070 into rust-phf:master Jul 15, 2022
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.

Windows Defender identifies proc-macro-hack dependency artifacts as a threat
2 participants