7 releases

0.2.12 Oct 15, 2024
0.2.11 Sep 6, 2024
0.2.9 Aug 17, 2024
0.2.4 Jul 1, 2024
0.1.1 Jun 3, 2024

#130 in #site

Download history 24/week @ 2024-07-30 14/week @ 2024-08-06 148/week @ 2024-08-13 18/week @ 2024-08-20 13/week @ 2024-08-27 334/week @ 2024-09-03 23/week @ 2024-09-10 16/week @ 2024-09-17 25/week @ 2024-09-24 27/week @ 2024-10-01 1/week @ 2024-10-08 194/week @ 2024-10-15 17/week @ 2024-10-22 11/week @ 2024-10-29 4/week @ 2024-11-05

226 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

~7–14MB
~176K SLoC