fastedge-derive

Crates.iofastedge-derive
lib.rsfastedge-derive
version0.1.10
sourcesrc
created_at2024-05-08 12:35:46.653735
updated_at2024-10-22 10:41:46.131341
descriptionFastEdge Rust SDK that helps you to create edge cloud application using WASM
homepage
repositoryhttps://github.com/G-Core/FastEdge-sdk-rust.git
max_upload_size
id1233747
size4,769
(gcoreit)

documentation

https://docs.rs/fastedge

README

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())
 }
Commit count: 65

cargo fmt