Skip to content

fix: #[function_callback] can be used without javascriptcore_sys #22

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

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Oct 11, 2023

This patch fixes the #[function_callback] procedural macro. It was using types from javascriptcore and from javascriptcore_sys. Problem: if the user uses javascriptcore only, and wants to use the macro, it has to add javascriptcore_sys as a dependency.

To avoid this situation, we expose javascript_sys as a (doc hidden) module from javascript under the sys name.

This patch also updates the #[function_callback] to use javascriptcore::sys instead of javascriptcore, and we are good.

This patch fixes the `#[function_callback]` procedural macro. It
was using types from `javascriptcore` and from `javascriptcore_sys`.
Problem: if the user uses `javascriptcore` only, and wants to use the
macro, it has to add `javascriptcore_sys` as a dependency.

To avoid this situation, we expose `javascript_sys` as a (doc hidden)
module from `javascript` under the `sys` name.

This patch also updates the `#[function_callback]` to use
`javascriptcore::sys` instead of `javascriptcore`, and we are good.
@waywardmonkeys waywardmonkeys merged commit 612cd3a into endoli:main Oct 11, 2023
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.

2 participants