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.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/mumlib/src/lib.rs b/mumlib/src/lib.rs
index 95ae274..2282df5 100644
--- a/mumlib/src/lib.rs
+++ b/mumlib/src/lib.rs
@@ -7,11 +7,14 @@
#![warn(unused_import_braces)]
#![warn(unused_lifetimes)]
#![warn(unused_qualifications)]
+// #![warn(missing_docs)] may be enabled later when more is documented
#![deny(macro_use_extern_crate)]
#![deny(missing_abi)]
#![deny(future_incompatible)]
#![forbid(unsafe_code)]
#![forbid(non_ascii_idents)]
+//! Shared items for crates that want to communicate with mumd and/or mumctl.
+
pub mod command;
pub mod config;
@@ -23,9 +26,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| {