
Motore is an async middleware abstraction powered by GAT and TAIT.
Around Motore, we build modular and reusable components for building robust networking clients and servers.
Motore is greatly inspired by Tower.
Overview
Motore uses GAT and TAIT to reduce the mental burden of writing asynchronous code, especially to avoid the overhead of Box to make people less anxious.
The core abstraciton of Motore is the Service trait:
Getting Started
Combing GAT and type_alias_impl_trait together, we can write asynchronous code in a very concise and readable way.
We also provided the #[motore::service] macro to make writing a Serivce more async-native:
use service;
FAQ
Why do we need GAT?
https://www.cloudwego.io/zh/docs/motore/faq/q1_gat/
Where's the poll_ready(a.k.a. backpressure)?
https://www.cloudwego.io/zh/docs/motore/faq/q2_pull_ready/
License
Motore is dual-licensed under the MIT license and the Apache License (Version 2.0).
See LICENSE-MIT and LICENSE-APACHE for details.
Credits
We have used some third party components, and we thank them for their work.
For the full list, you may refer to the CREDITS.md file.
Community
-
Email: motore@cloudwego.io
-
How to become a member: COMMUNITY MEMBERSHIP
-
Issues: Issues
-
Feishu: Scan the QR code below with Feishu or click this link to join our CloudWeGo Motore user group.