1 unstable release

0.1.1 Apr 9, 2024

#9 in #alive

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–12MB
~141K SLoC