aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mumlib/src/lib.rs')
-rw-r--r--mumlib/src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/mumlib/src/lib.rs b/mumlib/src/lib.rs
index 9b7d686..679db8d 100644
--- a/mumlib/src/lib.rs
+++ b/mumlib/src/lib.rs
@@ -1,3 +1,7 @@
+//! Shared items for crates that want to communicate with mumd and/or mumctl.
+
+// #![warn(missing_docs)]
+
pub mod command;
pub mod config;
pub mod error;
@@ -8,9 +12,15 @@ pub use error::Error;
use colored::*;
use log::*;
+/// The default file path to use for the socket.
pub const SOCKET_PATH: &str = "/tmp/mumd";
+
+/// The default mumble port.
pub const DEFAULT_PORT: u16 = 64738;
+/// Setup a minimal fern logger.
+///
+/// Format: `LEVEL [yyyy-mm-dd][HH:MM:SS] FILE:LINE MESSAGE`
pub fn setup_logger<T: Into<fern::Output>>(target: T, color: bool) {
fern::Dispatch::new()
.format(move |out, message, record| {