comfyui-client 0.1.0

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

pub fn setup() {
    static START: Once = Once::new();
    START.call_once(|| {
        env_logger::init();
    });
}

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