Skip to content

Commit

Permalink
Fix use of serde after removing it from rpassword
Browse files Browse the repository at this point in the history
  • Loading branch information
conradkleinespel committed Jul 12, 2022
1 parent 4311651 commit 309c876
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ keywords = ["read", "password", "security", "pass", "getpass"]
edition = "2018"

[features]
# Do not use this. Exists only to workaround the `duck` monorepo's structure.
# It is not covered by any semver versioning.
__serde = []
serde = ["dep:serde", "dep:serde_json"]

[target.'cfg(unix)'.dependencies]
libc = "0.2"
Expand All @@ -23,3 +21,5 @@ libc = "0.2"
winapi = { version = "0.3", features = ["std", "winnt", "fileapi", "processenv", "winbase", "handleapi", "consoleapi", "minwindef", "wincon"] }

[dependencies]
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
2 changes: 1 addition & 1 deletion src/rutil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ pub mod atty;
pub mod fix_new_line;
pub mod print_tty;
pub mod safe_string;
#[cfg(feature = "__serde")]
#[cfg(feature = "serde")]
pub mod safe_string_serde;
pub mod safe_vec;

0 comments on commit 309c876

Please sign in to comment.