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

Remove extern crates from napi-dispatcher #142

Closed
wants to merge 1 commit into from

Conversation

maddiemort
Copy link
Member

Denying rust_2018_idioms flags the extern crate napi; as unused - and if I'm understanding Rust 2018 correctly, both of these can be removed because the pub extern crate can be turned into a re-export.

Am I off-base here? I don't think this should break anything.

@maddiemort maddiemort self-assigned this Nov 4, 2022
@maddiemort maddiemort force-pushed the sm/unused-extern-crate branch from c160d29 to f2119c4 Compare November 4, 2022 13:42
@danielhenrymantilla
Copy link
Collaborator

Yeah, I'm tempted to say it should be fine, but since Cargo can get confused with renames (it's an are where it's incredibly brittle / not up to the standards of a mature feature), I'll have to try it against a codebase extensively using the js features, such as ditto 🤞

@danielhenrymantilla
Copy link
Collaborator

Fixed in #155 🙂

@danielhenrymantilla danielhenrymantilla deleted the sm/unused-extern-crate branch March 14, 2023 13:43
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.

3 participants