Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upExample of js_export use #244
Comments
|
Yes, we already have an example crate for that which is linked to in the README. (: |
I think the documentation on the main page needs a full example of js_export use that includes how to import it, or one of the examples in the examples folder should include this.
When I try #[macro_use]:
If I try to import stdweb::stdweb_internal_macros::js_export:
module stdweb_internal_macros is privateedit: It appears that the correct way to import is: use stdweb::js_export;
I recommend adding that line to the example in the docs.