All Projects → tsukuyomi-rs → tsukuyomi

tsukuyomi-rs / tsukuyomi

Licence: Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT
Asynchronous Web framework for Rust

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to tsukuyomi

Tk Listen
A library that allows to listen network sockets with proper resource limits and error handling
Stars: ✭ 27 (-66.67%)
Mutual labels:  asynchronous, tokio, futures
Tokio Tungstenite
Tokio binding for Tungstenite, the Lightweight stream-based WebSocket implementation
Stars: ✭ 392 (+383.95%)
Mutual labels:  asynchronous, tokio
Bb8
Full-featured async (tokio-based) postgres connection pool (like r2d2)
Stars: ✭ 287 (+254.32%)
Mutual labels:  asynchronous, tokio
Swiftcoroutine
Swift coroutines for iOS, macOS and Linux.
Stars: ✭ 690 (+751.85%)
Mutual labels:  asynchronous, futures
pg async.rs
Asynchronous, HA (master-master) PostgreSQL driver on top of libpq.
Stars: ✭ 40 (-50.62%)
Mutual labels:  asynchronous, futures
future.callr
🚀 R package future.callr: A Future API for Parallel Processing using 'callr'
Stars: ✭ 52 (-35.8%)
Mutual labels:  asynchronous, futures
Lithium
Easy to use C++17 HTTP Server with no compromise on performances. https://matt-42.github.io/lithium
Stars: ✭ 523 (+545.68%)
Mutual labels:  asynchronous, webframework
Tarpc
An RPC framework for Rust with a focus on ease of use.
Stars: ✭ 1,934 (+2287.65%)
Mutual labels:  tokio, futures
Rumqttd
rust mqtt broker
Stars: ✭ 77 (-4.94%)
Mutual labels:  asynchronous, tokio
Asynchronous
Implementation-agnostic asynchronous code
Stars: ✭ 13 (-83.95%)
Mutual labels:  asynchronous, futures
PromisedFuture
A Swift based Future/Promises framework to help writing asynchronous code in an elegant way
Stars: ✭ 75 (-7.41%)
Mutual labels:  asynchronous, futures
Future
High-performance Future implementation for the JVM
Stars: ✭ 223 (+175.31%)
Mutual labels:  asynchronous, futures
java-red
Effective Concurrency Modules for Java
Stars: ✭ 25 (-69.14%)
Mutual labels:  asynchronous, futures
memsocket
An asynchronous in-memory socket-like interface for Rust
Stars: ✭ 34 (-58.02%)
Mutual labels:  asynchronous, tokio
Tokio Rustls
Asynchronous TLS/SSL streams for Tokio using Rustls.
Stars: ✭ 143 (+76.54%)
Mutual labels:  tokio, futures
Lwt
OCaml promises and concurrent I/O
Stars: ✭ 505 (+523.46%)
Mutual labels:  asynchronous, futures
hyper-proxy
A proxy connector for Hyper-based crates
Stars: ✭ 73 (-9.88%)
Mutual labels:  tokio, futures
aitch
aitch is a simple, lightweight toolkit for building HTTP servers in Rust, loosely based on Go's net/http.
Stars: ✭ 19 (-76.54%)
Mutual labels:  tokio, futures
Future
🚀 R package: future: Unified Parallel and Distributed Processing in R for Everyone
Stars: ✭ 735 (+807.41%)
Mutual labels:  asynchronous, futures
Tomorrowland
Lightweight Promises for Swift & Obj-C
Stars: ✭ 106 (+30.86%)
Mutual labels:  asynchronous, futures

header

Asynchronous Web framework for Rust.


Crates.io Minimal Rust Version: 1.31.0 Build Status Coverage Status Gitter

Features

  • Type-safe and composable handlers based on Extractor system
  • Scoped routing and middlewares
  • Asynchronous HTTP server based on tokio, hyper and tower-service

Usage

use {
    std::net::SocketAddr,
    tsukuyomi::{
        App,
        config::prelude::*,
    },
    tsukuyomi_server::Server,
};

fn main() -> tsukuyomi_server::Result<()> {
    let app = App::create(
        path!("/")
            .to(endpoint::reply("Hello, world.\n"))
    )?;

    let addr = SocketAddr::from(([127, 0, 0, 1], 4000));
    println!("Listening on http://{}", addr);

    Server::new(app).bind(addr).run()
}

Resources

Extensions

License

Tsukuyomi is licensed under either of MIT license or Apache License, Version 2.0 at your option.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].