Refactor API calls #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently API calls are made only from the web app. The goal is to have a simulator as a desktop application, and a no_std target for embedded devices.
Find a way to simplify management of API calls. Maybe a trait?
Crates used to make API calls on different platforms:
They are all
async.For every request, what is required:
Send the request and get the response asynchronously.
How to do JSON parsing:
wasm and desktop
serde + serde_json
no_std
It seems https://docs.rs/serde-json-core/ is a good option.
serde_jsonseems to support no_stdgithub.com/serde-rs/json@a42fa980f8/Cargo.toml (L55)but someiois required, andcoredoes not provide it yet. https://github.com/serde-rs/json/issues/1316