Fabrice Desré
Fabrice Desré
Functions are not transferable so in worker mode a different strategy should be used. I can think of 2 options: - postMessage to the main thread to run the transformation...
That won't work if you use a CSP that prevents eval() to protect against XSS though...
Yes, you need to copy config.rs.sample to config.rs and edit it to include your network credentials. We did the same in the sensorweb-firmware repository as a safeguard against people committing...
Actually, this line needs to be removed from src/lib.rs
I guess you did it this way to not create strings on the heap but instead reuse the same buffer? That is clearly not idiomatic Rust, let me think how...
Here's my take on the `read_into` option: https://play.rust-lang.org/?gist=8bb5c89db3491cc01eb303804ef7b3f4&version=stable&backtrace=0
no, because the [u8] length doesn't know about the terminating 0
ha you're right 0 .. N loops to 0 to N-1. I though it was inclusive. The other error is more interesting!
Hm, indeed it's not doing the right thing... see https://play.rust-lang.org/?gist=0091cfe93c016259b158a4a4fa6306eb&version=stable&backtrace=0
I'm interested in contributing to that, but before making changes I'd like to agree on what changes are needed. The current server code makes heavy use of global variables using...