File tree 3 files changed +25
-0
lines changed 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;
7
9
#[ cfg( feature = "fe2o3-amqp" ) ]
8
10
pub mod fe2o3_amqp;
11
+
12
+ #[ cfg_attr(
13
+ docsrs,
14
+ doc( cfg( any(
15
+ feature = "http-binding" ,
16
+ feature = "actix" ,
17
+ feature = "warp" ,
18
+ feature = "reqwest" ,
19
+ feature = "axum" ,
20
+ feature = "poem"
21
+ ) ) )
22
+ ) ]
9
23
#[ cfg( any(
10
24
feature = "http-binding" ,
11
25
feature = "actix" ,
@@ -15,14 +29,19 @@ pub mod fe2o3_amqp;
15
29
feature = "poem"
16
30
) ) ]
17
31
pub mod http;
32
+ #[ cfg_attr( docsrs, doc( cfg( feature = "nats" ) ) ) ]
18
33
#[ cfg( feature = "nats" ) ]
19
34
pub mod nats;
35
+ #[ cfg_attr( docsrs, doc( cfg( feature = "poem" ) ) ) ]
20
36
#[ cfg( feature = "poem" ) ]
21
37
pub mod poem;
38
+ #[ cfg_attr( docsrs, doc( cfg( feature = "rdkafka" ) ) ) ]
22
39
#[ cfg( feature = "rdkafka" ) ]
23
40
pub mod rdkafka;
41
+ #[ cfg_attr( docsrs, doc( cfg( feature = "reqwest" ) ) ) ]
24
42
#[ cfg( feature = "reqwest" ) ]
25
43
pub mod reqwest;
44
+ #[ cfg_attr( docsrs, doc( cfg( feature = "warp" ) ) ) ]
26
45
#[ cfg( feature = "warp" ) ]
27
46
pub mod warp;
28
47
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