@@ -148,8 +148,8 @@ then retrieving that as a password will return a
148
148
[BadEncoding](Error::BadEncoding) error.
149
149
The returned error will have the raw bytes attached,
150
150
so you can access them, but you can also just fetch
151
- them directly using [Entry::get_secret] rather than
152
- [Entry: get_password].
151
+ them directly using [get_secret]( Entry::get_password) rather than
152
+ [get_password](Entry::get_secret) .
153
153
154
154
While this crate's code is thread-safe, the underlying credential
155
155
stores may not handle access from different threads reliably.
@@ -182,7 +182,7 @@ compile_error!("You can enable at most one keystore per target architecture");
182
182
#[ cfg( all( target_os = "linux" , feature = "linux-native" ) ) ]
183
183
pub mod keyutils;
184
184
#[ cfg( all( target_os = "linux" , feature = "linux-native" ) ) ]
185
- use keyutils as default;
185
+ pub use keyutils as default;
186
186
187
187
#[ cfg( all(
188
188
any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ,
@@ -193,7 +193,7 @@ pub mod secret_service;
193
193
any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ,
194
194
any( feature = "sync-secret-service" , feature = "async-secret-service" )
195
195
) ) ]
196
- use secret_service as default;
196
+ pub use secret_service as default;
197
197
198
198
#[ cfg( all(
199
199
target_os = "linux" ,
@@ -203,29 +203,29 @@ use secret_service as default;
203
203
feature = "async-secret-service"
204
204
) )
205
205
) ) ]
206
- use mock as default;
206
+ pub use mock as default;
207
207
#[ cfg( all(
208
208
any( target_os = "freebsd" , target_os = "openbsd" ) ,
209
209
not( any( feature = "sync-secret-service" , feature = "async-secret-service" ) )
210
210
) ) ]
211
- use mock as default;
211
+ pub use mock as default;
212
212
213
213
//
214
214
// pick the Apple keystore
215
215
//
216
216
#[ cfg( all( target_os = "macos" , feature = "apple-native" ) ) ]
217
217
pub mod macos;
218
218
#[ cfg( all( target_os = "macos" , feature = "apple-native" ) ) ]
219
- use macos as default;
219
+ pub use macos as default;
220
220
#[ cfg( all( target_os = "macos" , not( feature = "apple-native" ) ) ) ]
221
- use mock as default;
221
+ pub use mock as default;
222
222
223
223
#[ cfg( all( target_os = "ios" , feature = "apple-native" ) ) ]
224
224
pub mod ios;
225
225
#[ cfg( all( target_os = "ios" , feature = "apple-native" ) ) ]
226
- use ios as default;
226
+ pub use ios as default;
227
227
#[ cfg( all( target_os = "ios" , not( feature = "apple-native" ) ) ) ]
228
- use mock as default;
228
+ pub use mock as default;
229
229
230
230
//
231
231
// pick the Windows keystore
@@ -234,9 +234,9 @@ use mock as default;
234
234
#[ cfg( all( target_os = "windows" , feature = "windows-native" ) ) ]
235
235
pub mod windows;
236
236
#[ cfg( all( target_os = "windows" , not( feature = "windows-native" ) ) ) ]
237
- use mock as default;
237
+ pub use mock as default;
238
238
#[ cfg( all( target_os = "windows" , feature = "windows-native" ) ) ]
239
- use windows as default;
239
+ pub use windows as default;
240
240
241
241
#[ cfg( not( any(
242
242
target_os = "linux" ,
@@ -246,7 +246,7 @@ use windows as default;
246
246
target_os = "ios" ,
247
247
target_os = "windows" ,
248
248
) ) ) ]
249
- use mock as default;
249
+ pub use mock as default;
250
250
251
251
pub mod credential;
252
252
pub mod error;
0 commit comments