#http-request #http #native #web-native #wasm #request #web

reqwest-cross

Wrapper around reqwest for use in both native and wasm

11 unstable releases (3 breaking)

new 0.5.1 Jan 15, 2025
0.5.0 Jan 7, 2025
0.4.2 Jul 24, 2024
0.3.1 Jun 13, 2024
0.2.1 Apr 27, 2023

#162 in HTTP client

Download history 21/week @ 2024-09-25 25/week @ 2024-10-02 11/week @ 2024-10-09 1/week @ 2024-11-13 1/week @ 2024-11-20 11/week @ 2024-12-04 76/week @ 2024-12-11 41/week @ 2024-12-18 21/week @ 2024-12-25 118/week @ 2025-01-01 92/week @ 2025-01-08

274 downloads per month

MIT/Apache

33KB
330 lines

reqwest-cross

Wrapper around reqwest for ease of use in applications that target BOTH native and wasm but do not want to block in the calling task (eg. A UI thread). Inspired by ehttp but uses reqwest instead. Doesn't provide much value if you're only targeting one or the other because request does that pretty well, see their wasm example.

License

All code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both as noted in this issue on Bevy's repo.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~5–20MB
~295K SLoC