dependabot[bot] 23cf002ad7 Bump crossbeam-utils from 0.8.5 to 0.8.8 in /frameworks/Rust/trillium (#7394) 3 yıl önce
..
src 35ac09010a update dependencies, add verified tag (#7180) 3 yıl önce
templates 0a74e89772 add trillium.rs (#6977) 3 yıl önce
Cargo.lock 23cf002ad7 Bump crossbeam-utils from 0.8.5 to 0.8.8 in /frameworks/Rust/trillium (#7394) 3 yıl önce
Cargo.toml 35ac09010a update dependencies, add verified tag (#7180) 3 yıl önce
README.md 0a74e89772 add trillium.rs (#6977) 3 yıl önce
benchmark_config.json 35ac09010a update dependencies, add verified tag (#7180) 3 yıl önce
trillium.dockerfile 0a74e89772 add trillium.rs (#6977) 3 yıl önce

README.md

Trillium web framework

Description

Trillium is a modular toolkit for building async rust web applications. Trillium runs on stable rust, is fully async, and can run on tokio, async-std, or smol.

Features

  • Trillium includes minimum functionality by default, but offers powerful and composable features as additional crates
  • Fully-async HTTP/1.x implementation including pipelining, keep-alive, upgrades, and streaming bodies
  • Native-tls and Rustls support available
  • Reverse proxy and integrated http client available
  • Several template engine integrations available (askama, tera, handlebars, ructe)
  • Sessions support available, with multiple session stores (redis, postgres, mysql)
  • WebSockets and Server-Sent-Event support available
  • Channels feature available
  • Body compression available
  • Configurable request routing
  • Graceful server shutdown

Database

PostgreSQL.

Test URLs

Test 1: JSON Encoding

http://localhost:8080/json

Test 2: Single Row Query

http://localhost:8080/db

Test 3: Multi Row Query

http://localhost:8080/queries/20

Test 4: Fortunes (Template rendering)

http://localhost:8080/fortune

Test 5: Update Query

http://localhost:8080/updates/20

Test 6: Plaintext

http://localhost:8080/plaintext