1
+ #![ cfg_attr( docsrs, feature( doc_cfg) ) ]
1
2
/*!
2
3
3
4
# Keyring
@@ -204,6 +205,7 @@ compile_error!("This crate cannot use both the sync and async versions of any cr
204
205
// pick the *nix keystore
205
206
//
206
207
#[ cfg( all( target_os = "linux" , feature = "linux-native" ) ) ]
208
+ #[ cfg_attr( docsrs, doc( cfg( target_os = "linux" ) ) ) ]
207
209
pub mod keyutils;
208
210
#[ cfg( all(
209
211
target_os = "linux" ,
@@ -217,6 +219,10 @@ pub use keyutils as default;
217
219
any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ,
218
220
any( feature = "sync-secret-service" , feature = "async-secret-service" ) ,
219
221
) ) ]
222
+ #[ cfg_attr(
223
+ docsrs,
224
+ doc( cfg( any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ) )
225
+ ) ]
220
226
pub mod secret_service;
221
227
#[ cfg( all(
222
228
any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ,
@@ -235,6 +241,7 @@ pub use secret_service as default;
235
241
feature = "linux-native-async-persistent" ,
236
242
)
237
243
) ) ]
244
+ #[ cfg_attr( docsrs, doc( cfg( target_os = "linux" ) ) ) ]
238
245
pub mod keyutils_persistent;
239
246
#[ cfg( all(
240
247
target_os = "linux" ,
@@ -265,13 +272,15 @@ pub use mock as default;
265
272
// pick the Apple keystore
266
273
//
267
274
#[ cfg( all( target_os = "macos" , feature = "apple-native" ) ) ]
275
+ #[ cfg_attr( docsrs, doc( cfg( target_os = "macos" ) ) ) ]
268
276
pub mod macos;
269
277
#[ cfg( all( target_os = "macos" , feature = "apple-native" ) ) ]
270
278
pub use macos as default;
271
279
#[ cfg( all( target_os = "macos" , not( feature = "apple-native" ) ) ) ]
272
280
pub use mock as default;
273
281
274
282
#[ cfg( all( target_os = "ios" , feature = "apple-native" ) ) ]
283
+ #[ cfg_attr( docsrs, doc( cfg( target_os = "ios" ) ) ) ]
275
284
pub mod ios;
276
285
#[ cfg( all( target_os = "ios" , feature = "apple-native" ) ) ]
277
286
pub use ios as default;
@@ -282,6 +291,7 @@ pub use mock as default;
282
291
// pick the Windows keystore
283
292
//
284
293
#[ cfg( all( target_os = "windows" , feature = "windows-native" ) ) ]
294
+ #[ cfg_attr( docsrs, doc( cfg( target_os = "windows" ) ) ) ]
285
295
pub mod windows;
286
296
#[ cfg( all( target_os = "windows" , not( feature = "windows-native" ) ) ) ]
287
297
pub use mock as default;
0 commit comments