diff --git a/xous-rs/Cargo.toml b/xous-rs/Cargo.toml index 3a85e469f..16e130262 100644 --- a/xous-rs/Cargo.toml +++ b/xous-rs/Cargo.toml @@ -8,13 +8,18 @@ description = "System call interface for Xous" [dependencies] bitflags = "1" xous-macros = { path = "../macros", version = "0.1.0" } +log = { version = "0.4", optional = true } [features] # If this is set, then the "Drop" feature of MemoryMessage structs # will not be implemented. This should only be set by the kernel. forget-memory-messages = [] -default = [] +# `logging` causes this program to connect to a log server on startup +# so you can run log commands such as `info!()`. +logging = ["log"] + +default = ["logging"] [target.'cfg(any(windows,unix))'.dependencies] lazy_static = "1.4"