mirror of
https://github.com/cfal/shoes.git
synced 2026-11-17 08:16:14 +00:00
src/main.rs declared its own copy of the module tree, so every build compiled the crate twice and `cargo test --lib --bins` ran the shared unit tests twice. Move the command-line entry point into a `cli` module of the library and declare `process` and `udp_message_stream` there, so main.rs only installs the global allocator and calls `shoes::cli::main`. The process watcher tests now run in the library test target. With the server path reachable from the library, the crate-wide `allow(dead_code)` for code that only the binary used is no longer needed.