xous: add "logging" feature

This will connect to a logging server to allow for log messages.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-08-30 17:39:58 +08:00
parent cd7f8f67fc
commit d057cba0fb

View file

@ -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"