feat: v1.9.4, config support human JSON
This commit is contained in:
667
Cargo.lock
generated
667
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "tiny-encrypt"
|
||||
version = "1.9.3"
|
||||
version = "1.9.4"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
description = "A simple and tiny file encrypt tool"
|
||||
@@ -52,6 +52,7 @@ secrecy = "0.10"
|
||||
dialoguer = "0.11"
|
||||
ctrlc = "3.4"
|
||||
swift-secure-enclave-tool-rs = "1.0"
|
||||
json5 = "0.4"
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1
|
||||
|
||||
@@ -89,7 +89,8 @@ impl TinyEncryptConfig {
|
||||
file
|
||||
);
|
||||
let mut config: TinyEncryptConfig = opt_result!(
|
||||
serde_json::from_str(&config_contents),
|
||||
// serde_json::from_str(&config_contents),
|
||||
json5::from_str(&config_contents),
|
||||
"Parse config file: {}, failed: {}",
|
||||
file
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user