File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ exclude = [
13
13
]
14
14
categories = [" web-programming" , " encoding" , " data-structures" ]
15
15
16
+ # Enable all features when building on docs.rs to show feature gated bindings
17
+ [package .metadata .docs .rs ]
18
+ all-features = true
19
+ rustdoc-args = [" --cfg" , " docsrs" ]
20
+
16
21
[lib ]
17
22
name = " cloudevents"
18
23
Original file line number Diff line number Diff line change 1
1
//! Provides protocol binding implementations for [`crate::Event`].
2
2
3
+ #[ cfg_attr( docsrs, doc( cfg( feature = "actix" ) ) ) ]
3
4
#[ cfg( feature = "actix" ) ]
4
5
pub mod actix;
6
+ #[ cfg_attr( docsrs, doc( cfg( feature = "axum" ) ) ) ]
5
7
#[ cfg( feature = "axum" ) ]
6
8
pub mod axum;
9
+
10
+ #[ cfg_attr(
11
+ docsrs,
12
+ doc( cfg( any(
13
+ feature = "http-binding" ,
14
+ feature = "actix" ,
15
+ feature = "warp" ,
16
+ feature = "reqwest" ,
17
+ feature = "axum" ,
18
+ feature = "poem"
19
+ ) ) )
20
+ ) ]
7
21
#[ cfg( any(
8
22
feature = "http-binding" ,
9
23
feature = "actix" ,
@@ -13,14 +27,19 @@ pub mod axum;
13
27
feature = "poem"
14
28
) ) ]
15
29
pub mod http;
30
+ #[ cfg_attr( docsrs, doc( cfg( feature = "nats" ) ) ) ]
16
31
#[ cfg( feature = "nats" ) ]
17
32
pub mod nats;
33
+ #[ cfg_attr( docsrs, doc( cfg( feature = "poem" ) ) ) ]
18
34
#[ cfg( feature = "poem" ) ]
19
35
pub mod poem;
36
+ #[ cfg_attr( docsrs, doc( cfg( feature = "rdkafka" ) ) ) ]
20
37
#[ cfg( feature = "rdkafka" ) ]
21
38
pub mod rdkafka;
39
+ #[ cfg_attr( docsrs, doc( cfg( feature = "reqwest" ) ) ) ]
22
40
#[ cfg( feature = "reqwest" ) ]
23
41
pub mod reqwest;
42
+ #[ cfg_attr( docsrs, doc( cfg( feature = "warp" ) ) ) ]
24
43
#[ cfg( feature = "warp" ) ]
25
44
pub mod warp;
26
45
Original file line number Diff line number Diff line change 56
56
57
57
#![ doc( html_root_url = "https://docs.rs/cloudevents-sdk/0.5.0" ) ]
58
58
#![ deny( rustdoc:: broken_intra_doc_links) ]
59
+ #![ cfg_attr( docsrs, feature( doc_cfg) ) ] // Show feature gate in doc
59
60
60
61
pub mod binding;
61
62
pub mod event;
You can’t perform that action at this time.
0 commit comments