<!-- Thanks for filing a 🐛 bug report 😄! --> **Problem** `cargo check --release` crashes with stack overflow. ``` thread 'main' has overflowed its stack fatal runtime error: stack overflow ``` <!-- A clear and concise description of what the bug is. --> <!-- including what currently happens and what you expected to happen. --> **Steps** <!-- The steps to reproduce the bug. --> 1. `git clone https://github.com/thibault-martinez/bee.git` 2. `cd bee/` 3. `git checkout cargo-stack-overflow` 4. `cargo check --release` **Notes** `cargo 1.49.0 (d00d64df9 2020-12-05)` There is a circular dependency `bee-tangle`->`bee-snapshot`->`bee-ledger`->`bee-tangle`.