stdweb
stdweb copied to clipboard
A standard library for the client-side Web
Unicode escape sequences in strings are not handled correctly in the `js!` macro. A valid JavaScript string like `"Proof that this isn't JS\u0021"` will given an error that: ``` error:...
Here is some code I wrote in a newly generated `wasm-pack` project: ```rust #[wasm_bindgen] pub fn play_game(canvas: Reference) { // enable console.error panic messages for debugging set_panic_hook(); let canvas: CanvasElement...
Continues @Joe-Jones's pull request https://github.com/koute/stdweb/pull/297, addressing most of the inline review comments (responded to those that were not). The example app still works, not tested extensively otherwise.
This is a first attempt at wrapping the indexeddb API using stdweb. - No tests. - No futures. - An example based on one of the MDN examples. I can...
I want to avoid the error message from vscode although it works using the parcel plugin: pub fn js_export( attrs: proc_macro::TokenStream, input: proc_macro::TokenStream, ) -> proc_macro::TokenStream cannot find function `__web_free`...
When handling pointer events (onpointermove,onpointerup, onpointerleave etc.), screen_x and screen_y methods panic with message: `Panic error message: called `Result::unwrap()` on an `Err` value: NumericConversionError(NotAnInteger) ` Reproducable on Chrome. Firefox works.
The struct `stdweb::ecosystem::serde::SerializeMap` uses a `BTreeMap`, so it sorts the keys that are passed to it. It would probably make more sense to preserve the order of the keys.
rustc version rustc 1.29.0-nightly (64f7de921 2018-07-12) rustup show nightly-x86_64-pc-windows-msvc (default) cargo install -f cargo-web Finished release [optimized] target(s) in 5m 30s stdweb\examples\todomvc>cargo web start --target=wasm32-unknown-unknown --verbose warning: debug builds on...
It was brought to my attention in https://github.com/Pauan/rust-dominator/issues/10 that JavaScript strings (and DOMString) allow for unpaired surrogates. When using `TextEncoder`, it will convert those unpaired surrogates into U+FFFD (the replacement...
Would be nice to have it linked! https://docs.rs/stdweb/*/stdweb/