William Tange

Results 28 comments of William Tange

I'll get on this as soon as I can. `read_exact` can easily be replaced with `read_exactly` and `clone_from_slice`s implementation is also fairly straight forward.

Wasn't aware of `io::copy`! Thanks! The thing about `read_exact`/`read_exactly` is that they both error if they couldn't read the specified amount (right?), whereas an `io::Take` (when `read_to_end`) will happily return...

Yea, don't `read_exact` and `read_exactly` work in pretty much the same way? Regardless, using an `io::Take` does make more sense, all things considered. There are valid reasons for why the...

Are you still working on this @toqueteos? I've been toying with openssl for this (despite it not being super thread friendly), and I have it working alright.

Just realized I could pass `imageData.data` as `&mut [u8]` 😂 I assume there's nothing to be gained from calling `ctx.putImageData` from Rust (and there's no copying when passed with `&mut...

Sure. I forgot what I ended up doing exactly, but what I meant by that was I realized it was possible to pass a `Uint8Array` from JS-land to a `#[wasm_bindgen]`...

If I understood it correctly you intend to edit what is on screen by directly editing the `ImageData` as returned from `getImageData`? I'm afraid it wouldn't work like that as...

>I'm really hoping that at least on the rust side of things there's a way (even unsafe would be fine) to get a reference to the underlying vector, is there...

> Any good options other than implementing my own fill_rect? 😕 Afraid not.. At least not from me at the moment. In the end I opted for copying from rust...

I had some success using the latest CLI instead (thanks to #2381): ```bash cargo install --git https://github.com/DioxusLabs/dioxus.git dioxus-cli ``` With that, fetching `http://localhost:8080/` seems to respond correctly, although `http://localhost:8080//` still...