thedodd / wither

An ODM for MongoDB built on the official MongoDB Rust driver.
https://docs.rs/wither
Other
324 stars 40 forks source link

Support for synchronous code. #52

Open thedodd opened 4 years ago

thedodd commented 4 years ago

As of 0.9.0-alpha.0 the synchronous code has been disabled. This is due to a few difficulties with maintaining both the sync and async code in the same crate, specifically the difficulties exist around ensuring that docs are built properly to expose both interfaces. This difficulty comes about due to some types being made private in the mongodb crate based on the existence of some feature flags.

All in all, the easiest path forward may be to crate a new wither_sync crate which exposes the sync code if folks find themselves in need of this code.

If you are one of those individuals, please let me know!