folk-core 0.1.6

Server core for Folk PHP application server — worker pool, plugin registry, admin RPC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use folk_core::config::{LogConfig, LogFormat};
use folk_core::logging::init;

#[test]
fn init_succeeds_once() {
    let cfg = LogConfig {
        filter: "info".into(),
        format: LogFormat::Text,
    };
    // Don't assert success vs failure: in a test process, another test may
    // have initialized first. Just ensure it doesn't panic.
    let _ = init(&cfg);
}