asterai 1.0.0-alpha.3

CLI for asterai - the portable AI compute platform
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::bindings::asterai::host::api;
use crate::bindings::exports::___USERNAME_SNAKE___::___COMPONENT_SNAKE___::___COMPONENT_SNAKE___::Guest;

#[allow(warnings)]
mod bindings;

struct Component;

impl Guest for Component {
    fn greet(name: String) {
        let greeting = format!("hello {name}!");
        println!("{greeting}");
    }
}

bindings::export!(Component with_types_in bindings);