Skip to content

Instantly share code, notes, and snippets.

View jexjws's full-sized avatar
🧟
What's Happening??!

voyage200🍬 jexjws

🧟
What's Happening??!
View GitHub Profile
@jexjws
jexjws / learnmotoreinyminutes.rs
Last active October 24, 2025 14:01
在 Y 分钟内学习 motore
/*
* Motore: 一个受 Tower 启发的 Rust 异步中间件抽象库
*
* 核心理念:
* 1. `Service`: 代表一个异步服务 (Request -> Response)。
* 2. `Layer`: 代表中间件,它包装一个 `Service` 并返回一个新的 `Service`。
* 3. `Cx`: 一个可变的上下文,在整个调用链中传递,你可以使用它在整个调用链中传递数据(比如数据库连接、tracing span、用户信息等),这可是 Motore 的一大特色,也是与 Tower 的主要区别之一。
*/
// -----------------------------------------------------------------------------
@jexjws
jexjws / readme.md
Last active August 7, 2024 22:43
typecho-robots.txt