#openapi #silent #swagger #web-api

silent-openapi

OpenAPI 3.0 support for Silent web framework

6 stable releases

Uses new Rust 2024

new 2.10.1 Oct 23, 2025
2.10.0 Oct 17, 2025
2.9.1 Sep 28, 2025
2.8.1 Aug 28, 2025

#1923 in HTTP server

Download history 202/week @ 2025-08-26 24/week @ 2025-09-02 230/week @ 2025-09-23 41/week @ 2025-09-30 2/week @ 2025-10-07 135/week @ 2025-10-14

408 downloads per month

Apache-2.0

415KB
11K SLoC

Silent

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

概要

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

文档

目标

  • 路由
  • 中间件
  • 静态文件
  • WebSocket
  • 模板
  • 日志 (使用了tracing)
  • 配置
  • 会话
  • 安全
  • GRPC
  • Cloudflare Worker

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

~15–23MB
~388K SLoC