6 个仓库
Toolkits for building web applications and servers using the Rust programming language.
Distinct from Rust Network Frameworks: Existing candidates were too narrow, focusing on specific niches like eBPF or PostgreSQL extensions.
Explore 6 awesome GitHub repositories matching web development · Rust Web Frameworks. Refine with filters or upvote what's useful.
This project is a reference implementation of a production-ready backend API built with Rust and the Actix-Web framework. It serves as a codebase demonstrating the development of a newsletter subscription service, encompassing the management of subscriber sign-ups, email confirmations, and campaign delivery. The project highlights a layered architecture that separates concerns into handler, service, and repository layers. It utilizes an actor-based concurrency model for handling HTTP requests and employs trait-based abstractions to decouple business logic from external dependencies, such as e
Builds a production-ready backend API using the Rust programming language.
Iron is a Rust web framework used for building concurrent web applications and APIs. It functions as a concurrent HTTP server and provides a stateless route dispatcher to map incoming URL paths and globs to specific handler functions. The project is centered around a middleware-based request pipeline, which allows the request-response cycle to be extended via plugins and modifiers. It utilizes a thread-safe state container to store shared application memory accessible across all concurrent handlers and middleware. The framework covers broad capability areas including dynamic API routing, sta
Provides a comprehensive toolkit for building scalable web applications and APIs using the Rust programming language.
Tide 是一个用于 Rust 编程语言的异步 Web 服务器框架和 HTTP 工具包。它提供了一个系统,利用非阻塞 I/O 和异步运行时构建高并发网络应用程序和 REST API。 该框架以基于中间件的请求管道为核心,允许开发者通过可插拔的逻辑层拦截和处理 HTTP 请求与响应。它支持分层路由树,将端点组织成共享公共路径前缀和作用域中间件的嵌套组。 功能领域包括通过 WebSocket 和服务器发送事件 (SSE) 进行实时通信,以及通过静态文件服务和动态模板渲染进行内容交付。该框架还处理 JSON 负载、GraphQL 查询、多部分文件上传,以及全局应用程序状态和用户会话的管理。 安全性通过网络流量的 TLS 加密和受保护资源的身份验证提供支持。
Enables the development of high-performance web servers and APIs using Rust's asynchronous runtime.
Poem 是一个全面的工具包,用于使用 Rust 编程语言构建类型安全的 Web 应用、API 和服务器。它为开发处理具有强类型安全性的 HTTP 请求的 Web 服务器提供了基础。 该框架通过支持多种通信协议的协议无关处理程序映射而脱颖而出。这允许单个内部逻辑跨 HTTP、使用 protobuf 定义的 gRPC 服务以及用于 AI 模型集成的模型上下文协议(MCP)进行公开。此外,它还包括用于生成 OpenAPI v3 规范和交互式文档的内置工具。 该项目涵盖了广泛的功能,包括请求路由、基于特征(Trait)的中间件管道和会话管理。它提供安全功能,如基于 ACME 的自动 TLS 证书续期、CSRF 保护和 CORS 配置。其他集成功能包括通过 WebSocket 和服务器发送事件(SSE)进行的实时数据流、静态资源服务,以及用于分布式请求跟踪的 OpenTelemetry 集成。 该框架旨在支持多样化的部署目标,包括能够将 Web 应用作为云运行时内的事件驱动无服务器函数运行。
Provides a comprehensive toolkit for building type-safe web applications and APIs using the Rust programming language.
Salvo 是一个全面的 Rust Web 框架,用于构建异步 HTTP 服务器和 Web 应用。它具有一个分层 Web 路由器(使用树状结构将请求映射到处理程序)和一个基于洋葱模型的异步中间件流水线(用于请求和响应的预处理和后处理)。 该框架以其对现代网络协议的原生支持而著称,包括基于 QUIC 的 HTTP/3 实现以及 HTTP/1 和 HTTP/2。它包括一个集成的 OpenAPI 文档生成器,可直接从处理程序签名中提取模式,以生成标准化的 API 规范和交互式界面。此外,它通过 ACME 集成提供自动 TLS 管理,以获取和续订安全证书。 该项目涵盖了广泛的功能,包括通过 WebSocket 和 WebTransport 进行的实时通信,以及带有请求代理和路径重写的 API 网关功能。它内置了对会话管理、类型安全参数提取以及通过 OpenTelemetry 集成进行可观测性的支持。内容交付通过静态文件服务和动态 HTML 模板处理。 提供了一个用于引导新项目结构的命令行工具。
Provides a comprehensive toolkit for building asynchronous HTTP servers and web applications using the Rust programming language.
Nickel is a web framework for the Rust programming language designed to handle HTTP requests and responses. It functions as a server-side toolkit that provides integrated routing, middleware, and JSON deserialization. The framework utilizes a middleware-based request pipeline to insert custom logic and state management into the request-response cycle. It also includes a server-side template engine for generating dynamic HTML pages by merging data with markup templates. The project covers high-level capabilities for REST API development, web application routing, and global error handling to i
Provides a complete toolkit for building high-performance, safe web applications using Rust.