diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-03 21:05:51 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-03 21:05:51 +0800 |
| commit | 00764a6dcc6d99b73c47f92e9c260be414beaa63 (patch) | |
| tree | 89f8073f0d9ba466be57e3cec44ca41312a9354b /crates/utils/cfg_file/src/config.rs | |
| parent | 816ff19324e81a3354913695fc6a570598eb9358 (diff) | |
Change default config format from JSON to Bincode
Update file extensions for sheet, share, member, and virtual file
metadata to use new custom extensions (.st, .sre, .json, .vf) instead of
.bcfg. Also update client-side file extensions for latest info and local
sheets.
Diffstat (limited to 'crates/utils/cfg_file/src/config.rs')
| -rw-r--r-- | crates/utils/cfg_file/src/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/utils/cfg_file/src/config.rs b/crates/utils/cfg_file/src/config.rs index daf5e10..d3f5477 100644 --- a/crates/utils/cfg_file/src/config.rs +++ b/crates/utils/cfg_file/src/config.rs @@ -120,7 +120,7 @@ pub trait ConfigFile: Serialize + for<'a> Deserialize<'a> + Default { .file_name() .and_then(|name| name.to_str()) .and_then(ConfigFormat::from_filename) - .unwrap_or(ConfigFormat::Json); // Default to JSON + .unwrap_or(ConfigFormat::Bincode); // Default to Bincode // Deserialize based on format let result = match format { @@ -214,7 +214,7 @@ pub trait ConfigFile: Serialize + for<'a> Deserialize<'a> + Default { .file_name() .and_then(|name| name.to_str()) .and_then(ConfigFormat::from_filename) - .unwrap_or(ConfigFormat::Json); // Default to JSON + .unwrap_or(ConfigFormat::Bincode); // Default to Bincode match format { ConfigFormat::Yaml => { |
