Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

wither

> 数据库
Open source

An ODM for MongoDB built on the official MongoDB Rust driver.

349 stars0 likes1 views
WebsiteGitHub

About

An ODM for MongoDB built on the official MongoDB Rust driver.

wither

The primary goal of this project is to provide a simple, sane & predictable interface into MongoDB based on data models. If at any point this system might get in your way, you have direct access to the underlying driver. This project is tested against MongoDB 3.6, 4.0, 4.2 & 4.4.

GREAT NEWS! Wither is now based on the official MongoDB Rust driver. Thanks to advancements in the driver, Wither is now fully asynchronous. Simply mirroring the features of the underlying MongoDB driver, Wither supports the following runtimes:

  • tokio-runtime (default) activates the tokio runtime.
  • async-std-runtime activates the async-std runtime.

Due to updates in the underlying driver, there is a fair number of breaking changes in the Model trait, as well as the Model derive macro. Details can be found in the changelog and the documentation. Furthermore, everything is now async by default, and the synchronous interface has been completely removed from the repo.

items of interest

  • docs: all the good stuff is here.
  • changelog: details on what has happened from release to release.
  • contributing & development guidelines: details on how to get started with doing development on this project.

getting started

To get started, simply derive Model on your struct along with a few other serde derivations. Let's step through a full example.

…

next steps

And that's all there is to it. Now you are ready to tackle some of the other important parts of the model lifecycle. Some additional items to look into:

  • deriving model - learn more about automatically deriving the Model trait on your structs.
  • model usage - check out some of the other methods available to you from your models.
  • syncing indexes - learn how to synchronize a model's indexes with the database.
  • logging - learn how to hook into this crate's logging mechanisms.
  • migrations - learn about defining migrations to be run against your model's collection.

Good luck on the path.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustdatabasesmongodbodmorm

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库