wkr 0.0.0

#[worker] macro for wasm workers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0

mod args;
mod expand;

use proc_macro::TokenStream;

// General worker entrypoint. It will bind the input
// with Request and Response objects
#[proc_macro_attribute]
pub fn worker(attr: TokenStream, item: TokenStream) -> TokenStream {
    expand::expand_macro(attr, item)
}