Cargo Features
[dependencies]
reqwest-cross = { version = "0.5.1", default-features = false, features = ["reqwest_default", "native-tokio", "yield_now", "egui", "default-tls", "native-tls", "rustls-tls", "http2", "json", "cookies", "hickory-dns", "multipart", "socks", "stream", "brotli", "deflate", "gzip", "zstd"] }
- default = native-tokio, reqwest_default
-
Enables the tokio runtime and reqwest's default features.
If default-features gets disabled do ensure you at least enable tls, unless you explicitly do not want tls support. - reqwest_default default
-
Enables reqwest's default features
Enables reqwest
- native-tokio default
-
Sets [tokio][tokio-url] as the runtime to use for native
Enables tokio
Affects
native::spawn
… - yield_now
-
Add a function that can be called to yield to the executor.
This is only needed if you only have one thread and need to release it to prevent a deadlock because you are waiting on another future (as can be the case in WASM). If you are using a framework such as egui this may not be necessary as they already allow for other futures to make progress. But one test will quickly let you know either way. If the program freezes after you make a request then this can help. - egui
-
Add helper functions to ['DataState'] to do egui boiler plate
Enables egui
- default-tls
-
The following enable a subset of reqwest's features.
If you need a feature that we didn't include please open an issue and let us know and we'll add it.
In the mean while you can depend on reqwest directly with the same version as this crate and enable the feature.
Because features are additive it will be enabled but note that if the version goes out of sync it will cause compilation issues.
Enables the feature with the same name on reqwestEnables default-tls of reqwest
- native-tls
-
Enables the feature with the same name on reqwest
Enables native-tls of reqwest
- rustls-tls
-
Enables the feature with the same name on reqwest
Enables rustls-tls of reqwest
- http2
-
Enables the feature with the same name on reqwest
- json
-
Enables the feature with the same name on reqwest
-
Enables the feature with the same name on reqwest
- hickory-dns
-
Enables the feature with the same name on reqwest
Enables hickory-dns of reqwest
- multipart
-
Enables the feature with the same name on reqwest
- socks
-
Enables the feature with the same name on reqwest
- stream
-
Enables the feature with the same name on reqwest
- brotli
-
Enables the feature with the same name on reqwest
- deflate
-
Enables the feature with the same name on reqwest
- gzip
-
Enables the feature with the same name on reqwest
- zstd
-
Enables the feature with the same name on reqwest