madsim-rs / madsim

Magical Deterministic Simulator for distributed systems in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tonic: reduce dependencies on `cfg(madsim)`

wangrunji0408 opened this issue · comments

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.