omnia-runtime-macro 0.28.0

Procedural macros for Omnia runtime build code generation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use omnia_wasi_blobstore::{BlobstoreDefault, WasiBlobstore};
use omnia_wasi_http::{HttpDefault, WasiHttp};

warp::runtime!({
    main: true,
    hosts: {
        WasiHttp: HttpDefault,
        WasiBlobstore: BlobstoreDefault,
    }
});

#[derive(WasiHttpView)]
#[wasi_http(field = "http")]
pub struct StoreCtx {
    pub table: ResourceTable,
    pub wasi: WasiCtx,
    // #(pub #store_ctx_fields,)*
}