comfyui-client 0.4.0

Rust client for comfyui.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use comfyui_client::{ClientBuilder, ComfyUIClient, EventStream};
use std::sync::Once;

pub fn setup() {
    static START: Once = Once::new();
    START.call_once(|| {
        env_logger::builder()
            .filter_level(log::LevelFilter::Debug)
            .init();
    });
}

pub async fn build_client() -> (ComfyUIClient, EventStream) {
    ClientBuilder::new("http://localhost:8188")
        .build()
        .await
        .unwrap()
}