3 releases

new 0.5.10 Feb 19, 2025
0.5.9 Feb 19, 2025
0.5.8 Feb 19, 2025

#7 in #个人使用的rust工具库

31 downloads per month
Used in wang-utils

MIT license

4KB

个人使用的rust工具库

主要用于简化rust开发

Feature整理

该库拆分成了多个feature,默认情况下会引用部分feature,如需其他非默认的请自行添加

名称 是否默认 简介
full 包含全部feature
core 标准库通用工具
logger 日志相关工具
command 命令行相关工具
map map相关工具
git git相关工具
json json相关工具

lib.rs:

json相关工具

示例

use serde_json::json;
use wang_utils_json::write_json_to_file;

#[test]
fn test_write_json_to_file() -> anyhow::Result<()> {
  let json = json!({
      "user":"123312",
      "pwd":"user-pwd"
  });
  write_json_to_file("test.json", &json)?;
  Ok(())
}

Dependencies

~0.7–1.7MB
~35K SLoC