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

macro fastedge-derive

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

5 releases

0.1.10 Oct 22, 2024
0.1.8 Oct 21, 2024
0.1.7 Aug 20, 2024
0.1.6 May 10, 2024
0.1.5 May 8, 2024

#21 in #response-body

Download history 17/week @ 2024-07-29 157/week @ 2024-08-19 4/week @ 2024-08-26 18/week @ 2024-09-16 11/week @ 2024-09-23 6/week @ 2024-09-30 1/week @ 2024-10-07 1/week @ 2024-10-14 311/week @ 2024-10-21 15/week @ 2024-10-28 18/week @ 2024-11-04

345 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

~225–670KB
~16K SLoC