crates-io-api
crates-io-api copied to clipboard
Add WASM Support
This PR makes the crates_io_api package able to be used in a WASM context. Some functionality such as std::time needed to be replaced with the web_time crate which exports std::time for non-wasm systems (such as x86). In total this PR does 3 things:
- Refactor Code; exlude shared functionality in
utils.rs - Loosen and Update Dependencies
- Rewrite
async_client.rsfile such that it can be compiled with thewasm32-unknown-unknowntarget triple.
All tests are still passing. Users which have used this package should not be affected by any of the changes made. Let me know what you think.
Note that the most recent commits are part of an effort to have an intermediate package which can be used for publishing to crates.io.