Til Blechschmidt
Til Blechschmidt
After some investigation, I managed to load the `.wasm` file through the `wasm_runtime.js` by modifying the following [LOC](https://github.com/koute/cargo-web/blob/c3da27905a4cf38d5acbacf4dd0dd3b46ad796bd/src/wasm_runtime.js#L72-L75) as seen below: ```javascript const __promise = require("./websocket_api_web.wasm")(__imports) .then(results => { ```...
AFAIK they support both as well. In regards to JavaScript, one can include a whole directory in which case the loader _by default_ loads the `index.js` file. Otherwise, it loads...
I missed the third scenario where a rust crate might be completely separated from the remainder of the other sources e.g. through git submodules. In this case, it might be...
I quickly cobbled together a [simple loader](https://github.com/TheMegaTB/cargo-web-loader) that invokes `cargo web`. It currently only covers scenario 2 by importing the `Cargo.toml` or any subordinate `.rs` file and currently returns the...
One possible way would be to define a definitely unique constant in the runtime and set it to false by default. The loader could then detect and simply replace the...
For me running the client (commit 43255ab9e488a04039a4aa4499ee59f1500b2318) works without the AIOCOAP_CLIENT_TRANSPORT option on macOS High Sierra 10.13.3 ``` :: /tmp/aiocoap » ./aiocoap-client coap://coap.me/ ;rt="test";ct=0,;rt="validate";ct=0,;rt="Type1";ct=0;if="If1",;rt="blåbærsyltetøy";ct=0,;rt="sink";ct=0,;rt="separate";ct=0,;rt="Type1 Type2";ct=0;sz=1700;if="If2",;rt="secret";ct=0,;rt="Type2 Type1";ct=0;if="If2 If1",;rt="weird33";ct=0,;rt="weird44";ct=0,;rt="weird55";ct=0,;rt="weird333";ct=0,;rt="weird3333";ct=0,;rt="weird33333";ct=0,;rt="123412341234123412341234";ct=0,;rt="location-query";ct=0,;rt="create1";ct=0,;rt="large-update";ct=0,;rt="large-create";ct=0,;rt="query";ct=0,;rt="seg1";ct=40,;rt="path";ct=40,;rt="location1";ct=40,;rt="multi-format";ct=0,;rt="3";ct=50,;rt="4";ct=50,;rt="5";ct=50 (No newline at...
Additionally, I just noticed that one of the practice translations in the same lesson uses "squashed" (`SKWARBD`) as well. Depending on the resolution to this issue, it might be something...
I've run into a similar issue with one of my projects before. Not sure if it is the best solution but I just `tokio::spawn`'ed a closure which then takes care...
The question we should probably ask ourselves here is whether a session should actively be closed when it is dropped. * From a pure library usability standpoint? Probably. * From...
I agree with the sentiment, especially because adding a log message would definitely require a method to suppress it for those few people intentionally omitting it. However, especially for people...