Salvo is an extremely simple and powerful Rust web backend framework. Only basic Rust knowledge is required to develop backend services.
salvo-craft
Salvo Handler modular craft macros.
#[craft]
#[craft] is an attribute macro used to batch convert methods in an impl block into Salvo's Handler.
use *;
use *;
use craft;
use Arc;
async
Sure, you can also replace #[craft(handler)] with #[craft(endpoint(...))].
NOTE: If the receiver of a method is &self, you need to implement the Clone trait for the type.
Documentation & Resources
☕ Donate
Salvo is an open source project. If you want to support Salvo, you can ☕ buy me a coffee here.
⚠️ License
Salvo is licensed under either of
-
Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0).
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT).