aarch64-switch-rs / cargo-nx

Cargo subcommand to simplify building Nintendo Switch projects
MIT License
71 stars 7 forks source link

NRO example failing to build #7

Closed GnomedDev closed 1 year ago

GnomedDev commented 2 years ago

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.

XorTroll commented 1 year ago

This should be fixed already