59 releases (21 stable)

new 1.3.1 May 28, 2024
1.2.3 Apr 30, 2024
1.2.0 Mar 26, 2024
1.0.5 Dec 27, 2023
0.10.8 Jul 31, 2023

#96 in HTTP server

Download history 6/week @ 2024-02-18 300/week @ 2024-02-25 21/week @ 2024-03-03 1050/week @ 2024-03-10 344/week @ 2024-03-17 108/week @ 2024-03-24 169/week @ 2024-03-31 137/week @ 2024-04-07 12/week @ 2024-04-14 217/week @ 2024-04-28 6/week @ 2024-05-05 156/week @ 2024-05-12 24/week @ 2024-05-19

403 downloads per month

Apache-2.0

205KB
5.5K SLoC

Silent

build status
crates.io Documentation unsafe forbidden Rust Version
Download License

概要

Silent 是一个简单的基于Hyper的Web框架,它的目标是提供一个简单的、高效的、易于使用的Web框架。

目标

  • 路由
  • 中间件
  • 静态文件
  • WebSocket
  • 模板
  • 数据库
  • 日志 (使用了tracing)
  • 配置
  • 会话
  • 安全
  • 测试
  • 文档
  • GRPC

security

argon2

add make_password and verify_password function

pbkdf2

add make_password and verify_password function

aes

re-export aes/aes_gcm

rsa

re-export rsa

configs

setting

use silent::Configs;
let mut configs = Configs::default ();
configs.insert(1i32);

usage

async fn call(req: Request) -> Result<i32> {
    let num = req.configs().get::<i32>().unwrap();
    Ok(*num)
}

examples for llm

complex projects for llm

Dependencies

~11–26MB
~429K SLoC