nyquest_backend_reqwest/
lib.rs1#![doc = include_str!("../README.md")]
6#![cfg_attr(docsrs, feature(doc_cfg))]
7
8cfg_if::cfg_if! {
9 if #[cfg(target_arch = "wasm32")] {
10 mod wasm {
11 #[cfg(feature = "async")]
12 #[cfg_attr(docsrs, doc(cfg(feature = "async")))]
13 mod r#async;
14 #[cfg(feature = "blocking")]
15 #[cfg_attr(docsrs, doc(cfg(feature = "blocking")))]
16 mod blocking;
17 mod options;
18 mod response;
19 mod send_wrapper;
20
21 pub(crate) use options::WasmOptions;
22 }
23 } else {
24 #[cfg(feature = "async")]
25 #[cfg_attr(docsrs, doc(cfg(feature = "async")))]
26 mod r#async;
27 #[cfg(feature = "blocking")]
28 #[cfg_attr(docsrs, doc(cfg(feature = "blocking")))]
29 mod blocking;
30 mod response;
31 }
32}
33mod client;
34mod error;
35mod request;
36
37pub struct ReqwestBackend;
39
40pub fn register() {
42 nyquest_interface::register_backend(ReqwestBackend);
43}