docs.rs failed to build ohkami-0.9.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
ohkami-0.24.3
ohkami - [狼] wolf in Japanese - is declarative web framework for nightly Rust.
Features
- macro free, declarative APIs
- supporting multi runtime:
tokio,async-std(and more in future)
Quick start
- Add to
dependencies:
# this sample uses `tokio` runtime.
# you can choose `async-std` instead.
[]
= { = "0.9.0", = ["rt_tokio"] }
= { = "1", = ["full"] }
(And check if your Rust toolchains are nightly ones)
- Write your first code with ohkami:
use *;
async
async
async
Samples
handle path/query params
use *;
use Query;
async
async
async
Use tuple like (verion, id): (u8, usize), for multiple path params.
handle request body
use ;
async
async
use middlewares
ohkami's middlewares are called "fangs".
async
pack of Ohkamis
async
error handling
Use .map_err(|e| c. /* error_method */ )?:
async
async
License
ohkami is licensed under MIT LICENSE (LICENSE-MIT or https://opensource.org/licenses/MIT).