Reduce the number of crate binaries in the cargo workspace
cargo check etc currently checks all our binaries, which is a lot, because it includes all examples, all doc-tests, and all roundtrip tests. This also makes rust-analyzer slower because of this issue:
$ cargo run --bin 2>&1 | wc -l
9955
docs/code-examples- Combined to one crate in https://github.com/rerun-io/rerun/pull/4767
examples/rusttests/rust
One solution would be to split off examples and tests to its own workspace.
They should ideally be under its own folder then, but I'm not sure what that should be called.
Or we use many separate workspaces (one for docs, one for examples, one for tests, etc).
Either way we need to make sure all the workspaces are checked on CI (cargo fmt, cargo cranky, …),
which is annoying, because it may require duplicating Cranky.toml, clippy.toml, etc.
Another approach is to combine all existing binaries into one:
Source: rerun-io/rerun