1 unstable release

new 0.1.1 Apr 9, 2024

#5 in #alive

Download history 98/week @ 2024-04-04

98 downloads per month

Apache-2.0

5KB
66 lines

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
}

Dependencies

~6–14MB
~141K SLoC