#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

new 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

#19 in #response-body

Download history 16/week @ 2024-07-27 1/week @ 2024-08-03 145/week @ 2024-08-17 14/week @ 2024-08-24 2/week @ 2024-08-31 16/week @ 2024-09-14 11/week @ 2024-09-21 8/week @ 2024-09-28 1/week @ 2024-10-05 1/week @ 2024-10-12 285/week @ 2024-10-19

296 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

~235–680KB
~16K SLoC