From 95bb901b8a4927fb50386a5c52a285392b60f90d Mon Sep 17 00:00:00 2001 From: jRimbault Date: Sat, 17 Oct 2020 11:09:27 +0200 Subject: chore: fix the double compiling of lib and bin (#1616) * fix: rust modules are compiled twice The modules being declared both in the _library_ crate and the _binary_ crate made cargo compile everything twice: 1. for the library 2. for the binary What happened was: 1. The library "starship" was compiled. 2. The binary "starship" (and all its modules) were compiled. * fix: stop compiling every rust module twice restrict visibility * Run cargo fmt * Add bug_report module Co-authored-by: Matan Kushner Co-authored-by: Kevin Song --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 15a38074b..fb2361b86 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,13 +1,16 @@ // Lib is present to allow for benchmarking +pub mod bug_report; pub mod config; pub mod configs; +pub mod configure; pub mod context; pub mod formatter; +pub mod init; pub mod logger; pub mod module; -pub mod modules; +mod modules; pub mod print; -pub mod segment; +mod segment; mod utils; #[cfg(test)] -- cgit v1.2.3