Skip to content

Commit 046942b

Browse files
committed
fix(docs): add missing docs.rs feature tags in various places
1 parent e6bdfaa commit 046942b

File tree

6 files changed

+96
-0
lines changed

6 files changed

+96
-0
lines changed

lambda-events/src/custom_serde/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ use serde::{
66
use std::collections::HashMap;
77

88
#[cfg(feature = "codebuild")]
9+
#[cfg_attr(docsrs, doc(cfg(feature = "codebuild")))]
910
pub(crate) mod codebuild_time;
1011
#[cfg(feature = "codebuild")]
12+
#[cfg_attr(docsrs, doc(cfg(feature = "codebuild")))]
1113
pub type CodeBuildNumber = f32;
1214

1315
#[cfg(any(
@@ -28,6 +30,7 @@ mod headers;
2830
pub(crate) use self::headers::*;
2931

3032
#[cfg(feature = "dynamodb")]
33+
#[cfg_attr(docsrs, doc(cfg(feature = "dynamodb")))]
3134
pub(crate) mod float_unix_epoch;
3235

3336
#[cfg(any(feature = "alb", feature = "apigw"))]
@@ -65,6 +68,7 @@ where
6568
}
6669

6770
#[cfg(feature = "dynamodb")]
71+
#[cfg_attr(docsrs, doc(cfg(feature = "dynamodb")))]
6872
/// Deserializes `Item`, mapping JSON `null` to an empty item.
6973
pub(crate) fn deserialize_lambda_dynamodb_item<'de, D>(deserializer: D) -> Result<serde_dynamo::Item, D::Error>
7074
where

lambda-events/src/encodings/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ mod time;
66
use crate::custom_serde::{deserialize_base64, serialize_base64};
77

88
#[cfg(feature = "chrono")]
9+
#[cfg_attr(docsrs, doc(cfg(feature = "chrono")))]
910
pub use self::time::*;
1011
#[cfg(feature = "http")]
1112
mod http;
1213
#[cfg(feature = "http")]
14+
#[cfg_attr(docsrs, doc(cfg(feature = "http")))]
1315
pub use self::http::*;
1416

1517
pub type Error = Box<dyn std::error::Error + Send + Sync>;

lambda-events/src/event/mod.rs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,162 +1,203 @@
11
/// AWS Lambda event definitions for activemq.
22
#[cfg(feature = "activemq")]
3+
#[cfg_attr(docsrs, doc(cfg(feature = "activemq")))]
34
pub mod activemq;
45

56
/// AWS Lambda event definitions for alb.
67
#[cfg(feature = "alb")]
8+
#[cfg_attr(docsrs, doc(cfg(feature = "alb")))]
79
pub mod alb;
810
/// AWS Lambda event definitions for apigw.
911
#[cfg(feature = "apigw")]
12+
#[cfg_attr(docsrs, doc(cfg(feature = "apigw")))]
1013
pub mod apigw;
1114

1215
/// AWS Lambda event definitions for appsync.
1316
#[cfg(feature = "appsync")]
17+
#[cfg_attr(docsrs, doc(cfg(feature = "appsync")))]
1418
pub mod appsync;
1519

1620
/// AWS Lambda event definitions for autoscaling.
1721
#[cfg(feature = "autoscaling")]
22+
#[cfg_attr(docsrs, doc(cfg(feature = "autoscaling")))]
1823
pub mod autoscaling;
1924

2025
/// AWS Lambda event definitions for agent for amazon bedrock
2126
#[cfg(feature = "bedrock_agent_runtime")]
27+
#[cfg_attr(docsrs, doc(cfg(feature = "bedrock_agent_runtime")))]
2228
pub mod bedrock_agent_runtime;
2329

2430
/// AWS Lambda event definitions for chime_bot.
2531
#[cfg(feature = "chime_bot")]
32+
#[cfg_attr(docsrs, doc(cfg(feature = "chime_bot")))]
2633
pub mod chime_bot;
2734

2835
/// AWS Lambda event definitions for clientvpn.
2936
#[cfg(feature = "clientvpn")]
37+
#[cfg_attr(docsrs, doc(cfg(feature = "clientvpn")))]
3038
pub mod clientvpn;
3139

3240
/// AWS Lambda event definitions for cloudformation.
3341
#[cfg(feature = "cloudformation")]
42+
#[cfg_attr(docsrs, doc(cfg(feature = "cloudformation")))]
3443
pub mod cloudformation;
3544

3645
/// AWS Lambda event definitions for CloudWatch alarms.
3746
#[cfg(feature = "cloudwatch_alarms")]
47+
#[cfg_attr(docsrs, doc(cfg(feature = "cloudwatch_alarms")))]
3848
pub mod cloudwatch_alarms;
3949

4050
/// AWS Lambda event definitions for CloudWatch events.
4151
#[cfg(feature = "cloudwatch_events")]
52+
#[cfg_attr(docsrs, doc(cfg(feature = "cloudwatch_events")))]
4253
pub mod cloudwatch_events;
4354

4455
/// AWS Lambda event definitions for cloudwatch_logs.
4556
#[cfg(feature = "cloudwatch_logs")]
57+
#[cfg_attr(docsrs, doc(cfg(feature = "cloudwatch_logs")))]
4658
pub mod cloudwatch_logs;
4759

4860
/// AWS Lambda event definitions for code_commit.
4961
#[cfg(feature = "code_commit")]
62+
#[cfg_attr(docsrs, doc(cfg(feature = "code_commit")))]
5063
pub mod code_commit;
5164

5265
/// AWS Lambda event definitions for codebuild.
5366
#[cfg(feature = "codebuild")]
67+
#[cfg_attr(docsrs, doc(cfg(feature = "codebuild")))]
5468
pub mod codebuild;
5569

5670
/// AWS Lambda event definitions for codedeploy.
5771
#[cfg(feature = "codedeploy")]
72+
#[cfg_attr(docsrs, doc(cfg(feature = "codedeploy")))]
5873
pub mod codedeploy;
5974

6075
/// AWS Lambda event definitions for codepipeline_cloudwatch.
6176
#[cfg(feature = "codepipeline_cloudwatch")]
77+
#[cfg_attr(docsrs, doc(cfg(feature = "codepipeline_cloudwatch")))]
6278
pub mod codepipeline_cloudwatch;
6379

6480
/// AWS Lambda event definitions for codepipeline_job.
6581
#[cfg(feature = "codepipeline_job")]
82+
#[cfg_attr(docsrs, doc(cfg(feature = "codepipeline_job")))]
6683
pub mod codepipeline_job;
6784

6885
/// AWS Lambda event definitions for cognito.
6986
#[cfg(feature = "cognito")]
87+
#[cfg_attr(docsrs, doc(cfg(feature = "cognito")))]
7088
pub mod cognito;
7189

7290
/// AWS Lambda event definitions for config.
7391
#[cfg(feature = "config")]
92+
#[cfg_attr(docsrs, doc(cfg(feature = "config")))]
7493
pub mod config;
7594

7695
/// AWS Lambda event definitions for connect.
7796
#[cfg(feature = "connect")]
97+
#[cfg_attr(docsrs, doc(cfg(feature = "connect")))]
7898
pub mod connect;
7999

80100
/// AWS Lambda event definitions for dynamodb.
81101
#[cfg(feature = "dynamodb")]
102+
#[cfg_attr(docsrs, doc(cfg(feature = "dynamodb")))]
82103
pub mod dynamodb;
83104

84105
/// AWS Lambda event definitions for ecr_scan.
85106
#[cfg(feature = "ecr_scan")]
107+
#[cfg_attr(docsrs, doc(cfg(feature = "ecr_scan")))]
86108
pub mod ecr_scan;
87109

88110
/// AWS Lambda event definitions for firehose.
89111
#[cfg(feature = "firehose")]
112+
#[cfg_attr(docsrs, doc(cfg(feature = "firehose")))]
90113
pub mod firehose;
91114

92115
/// AWS Lambda event definitions for iam.
93116
#[cfg(feature = "iam")]
117+
#[cfg_attr(docsrs, doc(cfg(feature = "iam")))]
94118
pub mod iam;
95119

96120
/// AWS Lambda event definitions for iot.
97121
#[cfg(feature = "iot")]
122+
#[cfg_attr(docsrs, doc(cfg(feature = "iot")))]
98123
pub mod iot;
99124

100125
/// AWS Lambda event definitions for iot_1_click.
101126
#[cfg(feature = "iot_1_click")]
127+
#[cfg_attr(docsrs, doc(cfg(feature = "iot_1_click")))]
102128
pub mod iot_1_click;
103129

104130
/// AWS Lambda event definitions for iot_button.
105131
#[cfg(feature = "iot_button")]
132+
#[cfg_attr(docsrs, doc(cfg(feature = "iot_button")))]
106133
pub mod iot_button;
107134

108135
/// AWS Lambda event definitions for iot_deprecated.
109136
#[cfg(feature = "iot_deprecated")]
137+
#[cfg_attr(docsrs, doc(cfg(feature = "iot_deprecated")))]
110138
pub mod iot_deprecated;
111139

112140
/// AWS Lambda event definitions for kafka.
113141
#[cfg(feature = "kafka")]
142+
#[cfg_attr(docsrs, doc(cfg(feature = "kafka")))]
114143
pub mod kafka;
115144

116145
/// AWS Lambda event definitions for kinesis.
117146
#[cfg(feature = "kinesis")]
147+
#[cfg_attr(docsrs, doc(cfg(feature = "kinesis")))]
118148
pub mod kinesis;
119149

120150
/// AWS Lambda event definitions for lambda_function_urls.
121151
#[cfg(feature = "lambda_function_urls")]
152+
#[cfg_attr(docsrs, doc(cfg(feature = "lambda_function_urls")))]
122153
pub mod lambda_function_urls;
123154

124155
/// AWS Lambda event definitions for lex.
125156
#[cfg(feature = "lex")]
157+
#[cfg_attr(docsrs, doc(cfg(feature = "lex")))]
126158
pub mod lex;
127159

128160
/// AWS Lambda event definitions for rabbitmq.
129161
#[cfg(feature = "rabbitmq")]
162+
#[cfg_attr(docsrs, doc(cfg(feature = "rabbitmq")))]
130163
pub mod rabbitmq;
131164

132165
/// AWS Lambda event definitions for s3.
133166
#[cfg(feature = "s3")]
167+
#[cfg_attr(docsrs, doc(cfg(feature = "s3")))]
134168
pub mod s3;
135169

136170
/// AWS Lambda event definitions for secretsmanager.
137171
#[cfg(feature = "secretsmanager")]
172+
#[cfg_attr(docsrs, doc(cfg(feature = "secretsmanager")))]
138173
pub mod secretsmanager;
139174

140175
/// AWS Lambda event definitions for ses.
141176
#[cfg(feature = "ses")]
177+
#[cfg_attr(docsrs, doc(cfg(feature = "ses")))]
142178
pub mod ses;
143179

144180
/// AWS Lambda event definitions for SNS.
145181
#[cfg(feature = "sns")]
182+
#[cfg_attr(docsrs, doc(cfg(feature = "sns")))]
146183
pub mod sns;
147184

148185
/// AWS Lambda event definitions for SQS.
149186
#[cfg(feature = "sqs")]
187+
#[cfg_attr(docsrs, doc(cfg(feature = "sqs")))]
150188
pub mod sqs;
151189

152190
/// AWS Lambda event definitions for streams.
153191
#[cfg(feature = "streams")]
192+
#[cfg_attr(docsrs, doc(cfg(feature = "streams")))]
154193
pub mod streams;
155194

156195
// AWS Lambda event definitions for DocumentDB
157196
#[cfg(feature = "documentdb")]
197+
#[cfg_attr(docsrs, doc(cfg(feature = "documentdb")))]
158198
pub mod documentdb;
159199

160200
/// AWS Lambda event definitions for EventBridge.
161201
#[cfg(feature = "eventbridge")]
202+
#[cfg_attr(docsrs, doc(cfg(feature = "eventbridge")))]
162203
pub mod eventbridge;

0 commit comments

Comments
 (0)