Skip to main content

cloud_sdk_reqwest/
lib.rs

1#![no_std]
2#![doc = include_str!("../README.md")]
3
4#[cfg(feature = "std")]
5extern crate std;
6
7#[cfg(any(
8    feature = "async-rustls",
9    feature = "blocking-rustls",
10    feature = "blocking-rustls-webpki-roots"
11))]
12mod shared;
13
14#[cfg(feature = "fuzzing")]
15#[doc(hidden)]
16pub use shared::{fuzz_raw_http1_wire, fuzz_raw_response_parser};
17
18#[cfg(any(feature = "blocking-rustls", feature = "blocking-rustls-webpki-roots"))]
19pub mod blocking;
20
21#[cfg(feature = "async-rustls")]
22pub mod asynchronous;
23
24#[cfg(all(
25    test,
26    any(
27        feature = "async-rustls",
28        feature = "blocking-rustls",
29        feature = "blocking-rustls-webpki-roots"
30    )
31))]
32mod test_server;
33
34/// Provider-neutral transport adapter readiness state.
35#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
36pub enum ReqwestAdapterStatus {
37    /// The default crate graph remains no_std and transport-free.
38    TransportFreeByDefault,
39    /// The blocking rustls adapter is available when its feature is enabled.
40    BlockingRustlsAvailable,
41    /// The blocking adapter can use a deterministic Mozilla trust-root snapshot.
42    BlockingRustlsWebPkiRootsAvailable,
43    /// The asynchronous rustls adapter is available when its feature is enabled.
44    AsyncRustlsAvailable,
45}