#applications #sdk #http #body #response-body #error #fastedge

macro fastedge-derive

FastEdge Rust SDK that helps you to create edge cloud application using WASM

2 releases

0.1.6 May 10, 2024
0.1.5 May 8, 2024

#23 in #response-body

27 downloads per month
Used in fastedge

Apache-2.0

5KB

Derive proc macro #fastedge::main

Sample example

 use fastedge::http::{Error, Request, Response, StatusCode};
 use fastedge::hyper::body::Body;

 #[fastedge::main]
 fn main(req: Request<Body>) -> Result<Response<Body>, Error> {
     Response::builder().status(StatusCode::OK).body(Body::empty())
 }

Dependencies

~310–770KB
~18K SLoC