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 that converts methods in an impl block into Salvo's Handler implementations.
use *;
use *;
use craft;
use Arc;
async
Note: #[craft(handler)] can be replaced with #[craft(endpoint(...))] for more configuration options.
NOTE: When using &self as the method receiver, the containing type must implement the Clone trait.
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).