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) ) ]
12//! # Pavex - API reference
23//!
34//! Welcome to the API reference for Pavex!
@@ -16,9 +17,11 @@ pub use response::{into_response::IntoResponse, response_::Response};
1617
1718pub mod blueprint;
1819#[ cfg( feature = "config" ) ]
20+ #[ cfg_attr( docsrs, doc( cfg( feature = "config" ) ) ) ]
1921pub mod config;
2022pub mod connection;
2123#[ cfg( feature = "cookie" ) ]
24+ #[ cfg_attr( docsrs, doc( cfg( feature = "cookie" ) ) ) ]
2225pub mod cookie;
2326pub mod error;
2427pub mod http;
@@ -28,10 +31,12 @@ pub mod response;
2831pub mod router;
2932pub mod serialization;
3033#[ cfg( feature = "server" ) ]
34+ #[ cfg_attr( docsrs, doc( cfg( feature = "server" ) ) ) ]
3135pub mod server;
3236pub mod telemetry;
3337pub mod unit;
3438#[ cfg( feature = "time" ) ]
39+ #[ cfg_attr( docsrs, doc( cfg( feature = "time" ) ) ) ]
3540pub mod time {
3641 //! Utilities to work with dates, timestamps and datetimes.
3742 //!
Original file line number Diff line number Diff line change 11//! Tools to instrument and troubleshoot your Pavex applications.
22#[ cfg( feature = "server_request_id" ) ]
3+ #[ cfg_attr( docsrs, doc( cfg( feature = "server_request_id" ) ) ) ]
34mod server_request_id;
45
56#[ cfg( feature = "server_request_id" ) ]
7+ #[ cfg_attr( docsrs, doc( cfg( feature = "server_request_id" ) ) ) ]
68pub use server_request_id:: ServerRequestId ;
Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ pub mod config;
66pub use config:: _config:: TlsClientPolicyConfig ;
77
88#[ cfg( feature = "rustls_0_23" ) ]
9+ #[ cfg_attr( docsrs, doc( cfg( feature = "rustls_0_23" ) ) ) ]
910mod rustls_0_23;
Original file line number Diff line number Diff line change @@ -30,11 +30,12 @@ impl TryFrom<&TlsClientPolicyConfig> for ClientConfig {
3030
3131#[ derive( Debug , thiserror:: Error ) ]
3232#[ 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).
3435pub struct Rustls023ConfigError ( anyhow:: Error ) ;
3536
3637impl 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.
3839 pub fn rustls_0_23_config ( & self ) -> Result < ClientConfig , Rustls023ConfigError > {
3940 fn _config ( policy : & TlsClientPolicyConfig ) -> Result < ClientConfig , anyhow:: Error > {
4041 let provider = Arc :: new ( crypto_provider ( & policy. crypto_provider ) ?) ;
You can’t perform that action at this time.
0 commit comments