1
- #![ feature( doc_cfg) ]
1
+ #![ cfg_attr ( docsrs , feature( doc_cfg) ) ]
2
2
/*!
3
3
4
4
# Keyring
@@ -204,11 +204,8 @@ compile_error!("This crate cannot use both the sync and async versions of any cr
204
204
//
205
205
// pick the *nix keystore
206
206
//
207
- #[ cfg( any(
208
- all( target_os = "linux" , feature = "linux-native" ) ,
209
- all( target_os = "linux" , feature = "linux-native-sync-persistent" , doc)
210
- ) ) ]
211
- #[ doc( cfg( all( target_os = "linux" ) ) ) ]
207
+ #[ cfg( all( target_os = "linux" , feature = "linux-native" ) ) ]
208
+ #[ cfg_attr( docsrs, doc( cfg( target_os = "linux" ) ) ) ]
212
209
pub mod keyutils;
213
210
#[ cfg( all(
214
211
target_os = "linux" ,
@@ -218,14 +215,14 @@ pub mod keyutils;
218
215
) ) ]
219
216
pub use keyutils as default;
220
217
221
- #[ cfg( any(
222
- all(
223
- any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ,
224
- any( feature = "sync-secret-service" , feature = "async-secret-service" ) ,
225
- ) ,
226
- all( target_os = "linux" , feature = "linux-native-sync-persistent" , doc) ,
218
+ #[ cfg( all(
219
+ any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ,
220
+ any( feature = "sync-secret-service" , feature = "async-secret-service" ) ,
227
221
) ) ]
228
- #[ doc( cfg( any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ) ) ]
222
+ #[ cfg_attr(
223
+ docsrs,
224
+ doc( cfg( any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ) )
225
+ ) ]
229
226
pub mod secret_service;
230
227
#[ cfg( all(
231
228
any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ,
@@ -237,17 +234,14 @@ pub mod secret_service;
237
234
) ) ]
238
235
pub use secret_service as default;
239
236
240
- #[ cfg( any(
241
- all(
242
- target_os = "linux" ,
243
- any(
244
- feature = "linux-native-sync-persistent" ,
245
- feature = "linux-native-async-persistent" ,
246
- )
247
- ) ,
248
- all( target_os = "linux" , feature = "linux-native-sync-persistent" , doc) ,
237
+ #[ cfg( all(
238
+ target_os = "linux" ,
239
+ any(
240
+ feature = "linux-native-sync-persistent" ,
241
+ feature = "linux-native-async-persistent" ,
242
+ )
249
243
) ) ]
250
- #[ doc( cfg( all ( target_os = "linux" ) ) ) ]
244
+ #[ cfg_attr ( docsrs , doc( cfg( target_os = "linux" ) ) ) ]
251
245
pub mod keyutils_persistent;
252
246
#[ cfg( all(
253
247
target_os = "linux" ,
@@ -278,15 +272,15 @@ pub use mock as default;
278
272
// pick the Apple keystore
279
273
//
280
274
#[ cfg( all( target_os = "macos" , feature = "apple-native" ) ) ]
281
- #[ doc( cfg( all ( target_os = "macos" ) ) ) ]
275
+ #[ cfg_attr ( docsrs , doc( cfg( target_os = "macos" ) ) ) ]
282
276
pub mod macos;
283
277
#[ cfg( all( target_os = "macos" , feature = "apple-native" ) ) ]
284
278
pub use macos as default;
285
279
#[ cfg( all( target_os = "macos" , not( feature = "apple-native" ) ) ) ]
286
280
pub use mock as default;
287
281
288
282
#[ cfg( all( target_os = "ios" , feature = "apple-native" ) ) ]
289
- #[ doc( cfg( all ( target_os = "ios" ) ) ) ]
283
+ #[ cfg_attr ( docsrs , doc( cfg( target_os = "ios" ) ) ) ]
290
284
pub mod ios;
291
285
#[ cfg( all( target_os = "ios" , feature = "apple-native" ) ) ]
292
286
pub use ios as default;
@@ -297,7 +291,7 @@ pub use mock as default;
297
291
// pick the Windows keystore
298
292
//
299
293
#[ cfg( all( target_os = "windows" , feature = "windows-native" ) ) ]
300
- #[ doc( cfg( all ( target_os = "windows" ) ) ) ]
294
+ #[ cfg_attr ( docsrs , doc( cfg( target_os = "windows" ) ) ) ]
301
295
pub mod windows;
302
296
#[ cfg( all( target_os = "windows" , not( feature = "windows-native" ) ) ) ]
303
297
pub use mock as default;
0 commit comments