///|
/// The module's ROOT package: a thin forwarder to `src/command`.
///
/// It exists so `moonx riantr/LunaShield@latest ` works without
/// naming a package -- `moonx` resolves the ROOT package of a module
/// coordinate, and with no root executable it fails with "Prebuilt wasm
/// asset does not exist".
///
/// The target coordinate arrives as argv[1], and `moonx` passes the whole
/// argument vector through, so it is forwarded unchanged.
///
/// THE ENTRY POINT IS SPLIT BY BACKEND. `moonbitlang/core/async` provides
/// `run_async_main` -- the entry point the compiler emits for an `async fn
/// main` that awaits -- for `native`, `js` and `wasm`, and NOT for
/// `wasm-gc`. So `wasm-gc` gets the synchronous entry point, which scans the
/// sources it is handed and prints the report.

///|
#cfg(target="wasm-gc")
fn main {
  @command.run_sync(@command.cli_args())
}

///|
#cfg(any(target="native", target="wasm", target="js"))
async fn main {
  @command.run(@command.cli_args())
}