1+ #![ cfg_attr( docsrs, feature( doc_cfg) ) ]
12/*!
23
34# Keyring
@@ -204,6 +205,7 @@ compile_error!("This crate cannot use both the sync and async versions of any cr
204205// pick the *nix keystore
205206//
206207#[ cfg( all( target_os = "linux" , feature = "linux-native" ) ) ]
208+ #[ cfg_attr( docsrs, doc( cfg( target_os = "linux" ) ) ) ]
207209pub mod keyutils;
208210#[ cfg( all(
209211 target_os = "linux" ,
@@ -217,6 +219,10 @@ pub use keyutils as default;
217219 any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ,
218220 any( feature = "sync-secret-service" , feature = "async-secret-service" ) ,
219221) ) ]
222+ #[ cfg_attr(
223+ docsrs,
224+ doc( cfg( any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ) )
225+ ) ]
220226pub mod secret_service;
221227#[ cfg( all(
222228 any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ,
@@ -235,6 +241,7 @@ pub use secret_service as default;
235241 feature = "linux-native-async-persistent" ,
236242 )
237243) ) ]
244+ #[ cfg_attr( docsrs, doc( cfg( target_os = "linux" ) ) ) ]
238245pub mod keyutils_persistent;
239246#[ cfg( all(
240247 target_os = "linux" ,
@@ -265,13 +272,15 @@ pub use mock as default;
265272// pick the Apple keystore
266273//
267274#[ cfg( all( target_os = "macos" , feature = "apple-native" ) ) ]
275+ #[ cfg_attr( docsrs, doc( cfg( target_os = "macos" ) ) ) ]
268276pub mod macos;
269277#[ cfg( all( target_os = "macos" , feature = "apple-native" ) ) ]
270278pub use macos as default;
271279#[ cfg( all( target_os = "macos" , not( feature = "apple-native" ) ) ) ]
272280pub use mock as default;
273281
274282#[ cfg( all( target_os = "ios" , feature = "apple-native" ) ) ]
283+ #[ cfg_attr( docsrs, doc( cfg( target_os = "ios" ) ) ) ]
275284pub mod ios;
276285#[ cfg( all( target_os = "ios" , feature = "apple-native" ) ) ]
277286pub use ios as default;
@@ -282,6 +291,7 @@ pub use mock as default;
282291// pick the Windows keystore
283292//
284293#[ cfg( all( target_os = "windows" , feature = "windows-native" ) ) ]
294+ #[ cfg_attr( docsrs, doc( cfg( target_os = "windows" ) ) ) ]
285295pub mod windows;
286296#[ cfg( all( target_os = "windows" , not( feature = "windows-native" ) ) ) ]
287297pub use mock as default;
0 commit comments