🪶 Feather
Feather is a lightweight, DX-first web framework for Rust — inspired by the simplicity of Express.js, but designed for Rust’s performance and safety.
Why Feather?
-
Middleware-First Architecture
Everything is a middleware — route handlers, auth, logging — all composable and clean. -
Easy State Management Using Context
In the recent versions Feather, implemented the Context API that makes it very easy manage state without the use of Extractors/Macros -
Developer Experience First
Feather’s API is minimal, ergonomic, and readable -
Modular and Extensible
Feather is designed to Modular, only select the features you need and use the. What you don't use you don't pay -
Great Tooling Out Of the Box
With the use of the Feather-CLI Creating API's and Web Servers become a Breeze.
Getting Started
Add Feather to your Cargo.toml:
[]
= "0.3.1"
Quick Example
use ;
That’s all — no async,
Middleware in Feather
Middleware is intented to be heart of Feather. You may write it as a closure, a struct, or chain them together:
use ;
use builtins;
use ;
// Implementors of the Middleware trait are middleware that can be used in a Feather app.
;
State Management using the Context API
Feather's new Context API allows you to manage application-wide state without extractors or macros.
As an example:
use ;
Context Is more useful when combined with Database/File Accesses
Built-in JWT Authentication
Feather has native JWT module activated using a cargo feature jwt:
[]
= { = "0.3.1", = ["jwt"] }
use ;
use ;
Goals
- Being the simplest Rust web framework to get started with
- Being modular and easy to extend
- Focusing on DX without sacrificing Rust's safety and performance
Contributing
PRs welcome!
If you’ve got ideas or bugs, please open an issue or submit a pull request.
# Getting started with dev
License
Feather is MIT licensed. See LICENSE.
Acknowledgments
Feather is inspired by Express.js and exists to bring that same productivity to Rust.
Spread the Word
If you like Feather:
- ⭐ Star it on GitHub
- Share it on Reddit, HN, or Discord
- Build something and show up!