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

macro fastedge-derive

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

7 releases

new 0.2.0 Jan 14, 2025
0.1.11 Dec 17, 2024
0.1.10 Oct 22, 2024
0.1.7 Aug 20, 2024
0.1.6 May 10, 2024

#29 in #response-body

Download history 8/week @ 2024-09-29 1/week @ 2024-10-06 1/week @ 2024-10-13 301/week @ 2024-10-20 22/week @ 2024-10-27 20/week @ 2024-11-03 1/week @ 2024-11-10 3/week @ 2024-11-17 3/week @ 2024-11-24 1/week @ 2024-12-01 11/week @ 2024-12-08 145/week @ 2024-12-15 4/week @ 2024-12-22 15/week @ 2024-12-29 8/week @ 2025-01-05 107/week @ 2025-01-12

140 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

~220–660KB
~16K SLoC