#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

#28 in #response-body

Download history 12/week @ 2024-09-18 10/week @ 2024-09-25 3/week @ 2024-10-02 2/week @ 2024-10-09 219/week @ 2024-10-16 97/week @ 2024-10-23 16/week @ 2024-10-30 12/week @ 2024-11-06 1/week @ 2024-11-13 4/week @ 2024-11-20 2/week @ 2024-11-27 7/week @ 2024-12-04 80/week @ 2024-12-11 73/week @ 2024-12-18 22/week @ 2025-01-01

181 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

~230–680KB
~16K SLoC