Skip to content

Commit f800ce8

Browse files
Merge pull request #129 from brotskydotcom/master
This release integrates two improvements from @phlip9: - We don't do an unnecessary allocation on every get_password call. - There is always a default store available on all platforms (including Android - fixes android: fails to build #128).
2 parents 6d3b0e8 + e00c46e commit f800ce8

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords = ["password", "credential", "keychain", "keyring", "cross-platform"]
66
license = "MIT OR Apache-2.0"
77
name = "keyring"
88
repository = "https://github.com/hwchen/keyring-rs.git"
9-
version = "2.0.2"
9+
version = "2.0.3"
1010
edition = "2021"
1111
exclude = [".github/"]
1212
readme = "README.md"

src/lib.rs

+10-1
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,18 @@ pub mod ios;
142142
#[cfg(target_os = "ios")]
143143
use ios as default;
144144

145+
pub mod mock;
146+
#[cfg(not(any(
147+
target_os = "linux",
148+
target_os = "freebsd",
149+
target_os = "macos",
150+
target_os = "ios",
151+
target_os = "windows",
152+
)))]
153+
use mock as default;
154+
145155
pub mod credential;
146156
pub mod error;
147-
pub mod mock;
148157

149158
#[derive(Default, Debug)]
150159
struct EntryBuilder {

0 commit comments

Comments
 (0)