alive_conf

Crates.ioalive_conf
lib.rsalive_conf
version0.1.1
sourcesrc
created_at2024-04-09 09:39:56.762302
updated_at2024-04-09 09:39:56.762302
descriptionalive_conf : alter plugin for alive
homepagehttps://atomgit.com/i18n/alive/tree/dev/alter/alive_conf
repositoryhttps://atomgit.com/i18n/alive.git
max_upload_size
id1202086
size4,576
(3tieto)

documentation

README

alive_conf

use std::path::PathBuf;

use alive_conf::Conf;
use aok::{Result, OK};
use static_init::constructor;
use tracing::info;

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

#[test]
fn test() -> Result<()> {
  let dir: PathBuf = std::env!("CARGO_MANIFEST_DIR").into();
  let conf = Conf::new(dir.parent().unwrap().join("conf"));
  info!("dir: {:?}", conf);
  for i in conf.cluster("ol")?.iter() {
    dbg!(i);
  }
  OK
}
Commit count: 0

cargo fmt