madsim-rs / madsim

Magical Deterministic Simulator for distributed systems in Rust.
Apache License 2.0
648 stars 46 forks source link

tonic: reduce dependencies on `cfg(madsim)` #46

Closed wangrunji0408 closed 2 years ago

wangrunji0408 commented 2 years ago

Currently when building in simulation mode (with --cfg madsim), madsim-tonic still depends on tonic and re-exports some of its types. However, tonic has a huge dependence tree. Most of these crates are useless in our simulation. Let's figure out how to get rid of them in order to save compile time.