use re_log_types::LogMsg;
pub fn show(msgs: Vec<LogMsg>) -> re_viewer::external::eframe::Result {
if msgs.is_empty() {
re_log::debug!("Empty array of msgs - call to show() ignored");
return Ok(());
}
let store_source = re_log_types::StoreSource::RustSdk {
rustc_version: env!("RE_BUILD_RUSTC_VERSION").into(),
llvm_version: env!("RE_BUILD_LLVM_VERSION").into(),
};
let startup_options = re_viewer::StartupOptions::default();
re_viewer::run_native_viewer_with_messages(
re_build_info::build_info!(),
re_viewer::AppEnvironment::from_store_source(&store_source),
startup_options,
msgs,
)
}