Crates.io | alive_conf |
lib.rs | alive_conf |
version | 0.1.1 |
source | src |
created_at | 2024-04-09 09:39:56.762302 |
updated_at | 2024-04-09 09:39:56.762302 |
description | alive_conf : alter plugin for alive |
homepage | https://atomgit.com/i18n/alive/tree/dev/alter/alive_conf |
repository | https://atomgit.com/i18n/alive.git |
max_upload_size | |
id | 1202086 |
size | 4,576 |
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
}