6 releases

0.1.6 Jun 27, 2025
0.1.5 May 4, 2025
0.1.4 Apr 29, 2025

#1084 in HTTP server

Download history 260/week @ 2025-04-23 136/week @ 2025-04-30 12/week @ 2025-05-07 3/week @ 2025-05-14 134/week @ 2025-06-25 4/week @ 2025-07-02 7/week @ 2025-07-09

145 downloads per month

MIT/Apache

57KB
1K SLoC

Next Web Dev

Dev - make everything simpler

use next_web_dev::{ application::Applictaion, router::{open_router::OpenRouter, private_router::PrivateRouter},};
use next_web_core::{
    async_trait, context::properties::ApplicationProperties, ApplicationContext
};
use axum::routing::get;
// use async_trait::async_trait

/// Test application
#[derive(Default, Clone)]
pub struct TestApplication;


#[async_trait]
impl Application for TestApplication {
    async fn init_middleware(&mut self, properties: &ApplicationProperties) {}

    async fn application_router(&mut self, ctx: &mut ApplicationContext) -> axum::Router {
        axum::Router::new().route("/test", get(test_fn))
    }
}


async fn test_fn() -> &'static str {
    " Hello Axum! \n Hello Next Web!"
}

#[tokio::main]
async fn main() {
    TestApplication::run().await;
}

Dependencies

~27–41MB
~799K SLoC