yaiko-core 0.1.1

A modern, production-ready fullstack web framework for Rust
docs.rs failed to build yaiko-core-0.1.1
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.

yaiko-core

The core web framework engine for Yaiko — Built on Hyper and Tokio for high-performance Rust web applications.

    ██╗   ██╗ █████╗ ██╗██╗  ██╗ ██████╗ 
    ╚██╗ ██╔╝██╔══██╗██║██║ ██╔╝██╔═══██╗
     ╚████╔╝ ███████║██║█████╔╝ ██║   ██║
      ╚██╔╝  ██╔══██║██║██╔═██╗ ██║   ██║
       ██║   ██║  ██║██║██║  ██╗╚██████╔╝
       ╚═╝   ╚═╝  ╚═╝╚═╝╚═╝  ╚═╝ ╚═════╝ 

Repository: https://github.com/sazalo101/yaiko
📖 The Yaiko Book | 🌱 Yaiko for Beginners

Usage

Add yaiko-core to your Cargo.toml:

[dependencies]
yaiko-core = "0.1.1"
tokio = { version = "1.0", features = ["full"] }

Quick Web Server Example

use yaiko_core::{App, Router, Server, Request, Response, BoxError};

async fn hello(_req: Request) -> Result<Response, BoxError> {
    Ok(Response::new().text("Hello from Yaiko!"))
}

#[tokio::main]
async fn main() -> Result<(), BoxError> {
    let router = Router::new()
        .get("/", hello);

    let app = App::new().router(router);
    Server::new(app, "127.0.0.1:3000".parse()?).run().await?;
    Ok(())
}

Features

  • Blazing Fast: Hyper-powered non-blocking HTTP engine
  • Batteries Included: Routing, Middleware, CSRF, Rate Limiting, Security Headers
  • Template & Static File Support: Built-in Handlebars templates and static asset serving
  • Observability: Built-in Prometheus metrics and tracing
  • Real-Time: Native WebSockets support

License

MIT