Skip to content

Commit fda3b7e

Browse files
committed
doc: fix cargo doc builds when non-default features selected
1 parent 030f823 commit fda3b7e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@
6363
//! * `async-https-rustls-manual-roots` enables [`reqwest`], the async client with support for
6464
//! proxying and TLS (SSL) using the `rustls` TLS backend without using its the default root
6565
//! certificates.
66-
66+
//!
67+
#![cfg_attr(not(feature = "minreq"), doc = "[`minreq`]: https://docs.rs/minreq")]
68+
#![cfg_attr(not(feature = "reqwest"), doc = "[`reqwest`]: https://docs.rs/reqwest")]
6769
#![allow(clippy::result_large_err)]
6870

6971
use std::collections::HashMap;
@@ -87,7 +89,7 @@ pub use blocking::BlockingClient;
8789
pub use r#async::AsyncClient;
8890

8991
/// Response status codes for which the request may be retried.
90-
const RETRYABLE_ERROR_CODES: [u16; 3] = [
92+
pub const RETRYABLE_ERROR_CODES: [u16; 3] = [
9193
429, // TOO_MANY_REQUESTS
9294
500, // INTERNAL_SERVER_ERROR
9395
503, // SERVICE_UNAVAILABLE

0 commit comments

Comments
 (0)