-
Notifications
You must be signed in to change notification settings - Fork 290
Remove legacy #881
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
Remove legacy #881
Conversation
f41f9e0 to
8684081
Compare
dherman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is so gratifying 🔥
A few questions and a couple minor comments, but it looks great.
8684081 to
3d29faa
Compare
3d29faa to
371736f
Compare
|
@dherman Thanks for reviewing! I added a commit to address the review feedback. Additionally, I rebased on top of |
dherman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
This PR includes lots of clean-ups--each as an independent commit--but, only ones that made sense to merge at once.
napi-1. Remove these.usestatements were unnecessarily complicated. Cleaned all of theusestatements for consistent style.neon-runtimetoneon::sys. There isn't a reason for it to be a separate crate anymore and this will yield better performance with thin LTO.neon-build,cliThere are a few future clean-ups I would like to perform that are not included. For example:
srcintocrates/neon. Createnpmdirectory (name?) movecreate-neonandcargo-cp-artifactinto it.neon::sys(formerlyneon-runtime) methods to be more idiomatic instead of the style of legacy. This is removing a lot of out pointers. Eliminate thebuildclosurenapieverywhere to node-api and deprecatenapi-feature flagstransmuteunsafebut, aren't. I've seen this most onnew_internalandfrom_rawmethods.