You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It goes against every Cargo project preconception to have certain
modules be compiled from both lib.rs and main.rs and it leads to
shenanigans such as #[allow(dead_code)] tags scattered all over the
place, which is its own can of worms when done at such a high level. Do
it properly and export necessary functionality from the library, for
consumption by the binary. To prevent any misconceptions of there being
a stable API contract for functionality *only* being used by the binary,
put it into an hidden module.
Signed-off-by: Daniel Müller <deso@posteo.net>
0 commit comments