stdweb
stdweb copied to clipboard
A standard library for the client-side Web
`INode::replace_child` returns a `Result` whose error type is private and can therefor not be used. Is this intentional? Can we make it `pub` otherwise? In other news: Is this project...
This fixes an issue that, when a dependent crate depends on `stdweb` for the use of the `js!` macro but does not specify the dependency `wasm_bindgen`, attempting to build for...
Whenever I switch between doing `cargo check` in Sublime Text and `cargo web deploy` in cmd.exe, it causes unnecessary recompilation due to this line: https://github.com/koute/stdweb/blob/9b418d98df6fafaa4d4b87b04c304d0220292055/stdweb-internal-runtime/build.rs#L62 I usually have `cargo watch...
I'm using FormData to get some input values, and convert these values to i64. currently I used this method to reduce duplicate code: ``` #[derive(Debug, Default)] struct Number(i64); impl TryFrom...
The `console!` macro documentation says > If you want to print things to the console in a standardized way, use [`println!`](https://doc.rust-lang.org/std/macro.println.html) instead. But when I use `println!`, I don't get...
See https://github.com/rust-fuzz/cargo-fuzz/issues/199
Added: methods to read/write selectionStart & selectionEnd properties of a textarea element
get_all_response_headers allow one to retrieve all response headers and so they can be iterated over. Example converting headers to hyper::http::HeaderMap ``` let xhr = XmlHttpRequest::new(); let raw_headers = xhr.get_all_response_headers(); let...
```rust #[macro_use] extern crate stdweb; #[macro_use] extern crate serde_derive; #[derive(Serialize)] struct Foo { bar: u64, } js_serializable!(Foo); fn main() { println!("Hello, world!"); let foo = Foo { bar: 883498451449996500, };...