cargo-nx
cargo-nx copied to clipboard
NRO example failing to build
The default NRO example fails to build with
error[E0412]: cannot find type `LmLogger` in module `log`witch_example(bin)
--> src/main.rs:31:20
|
31 | diag_log!(log::LmLogger { log::LogSeverity::Trace, false } => "Hello world!");
| ^^^^^^^^ help: a trait with a similar name exists: `Logger`
|
::: /home/gnome/.cargo/git/checkouts/nx-3560396e08328007/31f4590/src/diag/log.rs:50:1
|
50 | pub trait Logger {
| ---------------- similarly named trait `Logger` defined here
It seems to be fixed by enabling the services
feature of nx
and using log::lm::LmLogger
instead of log::LmLogger
.