File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ #![ cfg_attr( docsrs, feature( doc_cfg) ) ]
1
2
//! # Pavex - API reference
2
3
//!
3
4
//! Welcome to the API reference for Pavex!
@@ -16,9 +17,11 @@ pub use response::{into_response::IntoResponse, response_::Response};
16
17
17
18
pub mod blueprint;
18
19
#[ cfg( feature = "config" ) ]
20
+ #[ cfg_attr( docsrs, doc( cfg( feature = "config" ) ) ) ]
19
21
pub mod config;
20
22
pub mod connection;
21
23
#[ cfg( feature = "cookie" ) ]
24
+ #[ cfg_attr( docsrs, doc( cfg( feature = "cookie" ) ) ) ]
22
25
pub mod cookie;
23
26
pub mod error;
24
27
pub mod http;
@@ -28,10 +31,12 @@ pub mod response;
28
31
pub mod router;
29
32
pub mod serialization;
30
33
#[ cfg( feature = "server" ) ]
34
+ #[ cfg_attr( docsrs, doc( cfg( feature = "server" ) ) ) ]
31
35
pub mod server;
32
36
pub mod telemetry;
33
37
pub mod unit;
34
38
#[ cfg( feature = "time" ) ]
39
+ #[ cfg_attr( docsrs, doc( cfg( feature = "time" ) ) ) ]
35
40
pub mod time {
36
41
//! Utilities to work with dates, timestamps and datetimes.
37
42
//!
Original file line number Diff line number Diff line change 1
1
//! Tools to instrument and troubleshoot your Pavex applications.
2
2
#[ cfg( feature = "server_request_id" ) ]
3
+ #[ cfg_attr( docsrs, doc( cfg( feature = "server_request_id" ) ) ) ]
3
4
mod server_request_id;
4
5
5
6
#[ cfg( feature = "server_request_id" ) ]
7
+ #[ cfg_attr( docsrs, doc( cfg( feature = "server_request_id" ) ) ) ]
6
8
pub use server_request_id:: ServerRequestId ;
Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ pub mod config;
6
6
pub use config:: _config:: TlsClientPolicyConfig ;
7
7
8
8
#[ cfg( feature = "rustls_0_23" ) ]
9
+ #[ cfg_attr( docsrs, doc( cfg( feature = "rustls_0_23" ) ) ) ]
9
10
mod rustls_0_23;
Original file line number Diff line number Diff line change @@ -30,11 +30,12 @@ impl TryFrom<&TlsClientPolicyConfig> for ClientConfig {
30
30
31
31
#[ derive( Debug , thiserror:: Error ) ]
32
32
#[ error( transparent) ]
33
- /// The error that can occur in [`TlsClientPolicyConfig::rustls_0_23_config`] when building a `rustls::ClientConfig`.
33
+ /// The error that can occur in [`TlsClientPolicyConfig::rustls_0_23_config`] when building a
34
+ /// [`rustls::ClientConfig`](https://docs.rs/rustls/0.23/rustls/client/struct.ClientConfig.html).
34
35
pub struct Rustls023ConfigError ( anyhow:: Error ) ;
35
36
36
37
impl TlsClientPolicyConfig {
37
- /// Build a [`rustls::ClientConfig`] according to the specified configuration.
38
+ /// Build a [`rustls::ClientConfig`](https://docs.rs/rustls/0.23/rustls/client/struct.ClientConfig.html) according to the specified configuration.
38
39
pub fn rustls_0_23_config ( & self ) -> Result < ClientConfig , Rustls023ConfigError > {
39
40
fn _config ( policy : & TlsClientPolicyConfig ) -> Result < ClientConfig , anyhow:: Error > {
40
41
let provider = Arc :: new ( crypto_provider ( & policy. crypto_provider ) ?) ;
You can’t perform that action at this time.
0 commit comments