feat: v1.9.4, config support human JSON

This commit is contained in:
2025-07-24 22:51:43 +08:00
parent f0f505bde3
commit 044daaad7d
3 changed files with 428 additions and 245 deletions

View File

@@ -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
);