-
-
Couldn't load subscription status.
- Fork 4.2k
Screenshots in wasm #8455
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
Screenshots in wasm #8455
Conversation
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.
LGTM. just a question
| html_element.click(); | ||
| web_sys::Url::revoke_object_url(&url)?; | ||
| Ok::<(), JsValue>(()) | ||
| })() { |
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.
The syntax for "try/catch" in rust is very unusual 🙂
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.
you... get used to it. and it provides nice scoping
| 'Blob', | ||
| 'Document', | ||
| 'Element', | ||
| 'HtmlElement', | ||
| 'Node', | ||
| 'Url', | ||
| 'Window', |
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.
Will including more web-sys features meaningfully affect our wasm build sizes?
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.
Just tried a build, it's 14kB smaller with this PR. Build duration were similar
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.
Amazing that it got smaller by adding features. Works for me
94aa995 to
39f34f6
Compare
Objective
Solution
aelement to the document linking to that url, click on that element, then revoke the url