6 releases

0.2.11 Sep 6, 2024
0.2.10 Sep 5, 2024
0.2.9 Aug 17, 2024
0.2.4 Jul 1, 2024
0.1.1 Jun 3, 2024

#22 in #mark-down

Download history 147/week @ 2024-06-03 201/week @ 2024-06-10 26/week @ 2024-06-17 186/week @ 2024-07-01 14/week @ 2024-07-15 24/week @ 2024-07-29 14/week @ 2024-08-05 135/week @ 2024-08-12 29/week @ 2024-08-19 14/week @ 2024-08-26 330/week @ 2024-09-02 10/week @ 2024-09-09 49/week @ 2024-09-16

404 downloads per month
Used in 2 crates (via i18n_js)

MulanPSL-2.0

56KB
879 lines

verfs

use aok::{Result, OK};
use static_init::constructor;

#[constructor(0)]
extern "C" fn init() {
  loginit::init()
}

// #[tokio::test]
// async fn test() -> Result<()> {
//   info!("{}", 123456);
//   OK
// }

#[test]
fn test() -> Result<()> {
  // let dir: PathBuf = env!("CARGO_MANIFEST_DIR").into();
  // let yml = dir.join("tests/test.yml");
  // let mut hash = HashMap::new();
  // let r = latest_ver(&yml, &mut hash)?;
  // dbg!(r);
  // let tests = dir.join("tests");
  //
  // let mut verfs = VerFs::load(&tests, tests.join("out"), tests.join("log"))?;
  //
  // verfs.cp("main.rs")?;
  // verfs.wstr("a/b/c.txt", "123\n456")?;
  // verfs.wstr("ab/b/c.txt", "123\n456")?;
  // verfs.wstr("b/1/2.txt", "123\n")?;
  // verfs.wstr("b/2/2.txt", "123\n456")?;
  // verfs.save()?;
  //
  // let mut prefix_li = PrefixLi::new(vec!["a".into(), "b".into()]);
  //
  // for (k, v) in verfs.sorted_rel_ver() {
  //   info!("{k} {v}");
  //   prefix_li.add(k, v);
  // }
  // for (prefix, i) in prefix_li.0 {
  //   println!("{prefix} {}", to_string(&i)?);
  // }

  OK
}

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Dependencies

~10–17MB
~186K SLoC