#tauri-app #performance-analysis #applications #dev-tools #event-logging #debugging #inspect

sys tauri-plugin-devtools

CrabNebula devtools for Tauri: Inspect, monitor, and understand your application with ease

10 releases (1 stable)

2.0.0 Oct 2, 2024
2.0.0-rc.1 Sep 5, 2024
2.0.0-rc.0 Aug 2, 2024
2.0.0-beta.5 Jul 25, 2024
0.1.0 Sep 18, 2023

#206 in Profiling

Download history 176/week @ 2024-08-03 193/week @ 2024-08-10 82/week @ 2024-08-17 209/week @ 2024-08-24 499/week @ 2024-08-31 479/week @ 2024-09-07 417/week @ 2024-09-14 351/week @ 2024-09-21 429/week @ 2024-09-28 738/week @ 2024-10-05 815/week @ 2024-10-12 832/week @ 2024-10-19 889/week @ 2024-10-26 790/week @ 2024-11-02 1069/week @ 2024-11-09 817/week @ 2024-11-16

3,678 downloads per month
Used in tauri-plugin-devtools-app

MIT/Apache

81KB
1.5K SLoC

Devtools for Tauri

Inspect, monitor, and understand your Tauri application with ease.

  • Easy Integration: With just a few lines of code, enable detailed event logging and metadata extraction for your application.
  • Rich Insights: Get insight into what your app is doing, Performance, Errors, Warnings, everything is available at a glance.
  • And more: This project is actively worked on, and we are open to hear your ideas, check out the Upcoming Features issue for details.

Getting Started

Ensure you have Tauri set up correctly. Then install the Rust instrumentation from crates.io:

cargo add tauri-plugin-devtools

Then add the following snippet to your tauri initialization code:

fn main() {
    #[cfg(debug_assertions)] // only enable instrumentation in development builds
    let devtools = tauri_plugin_devtools::init();

    let mut builder = tauri::Builder::default();

    #[cfg(debug_assertions)]
    {
        builder = builder.plugin(devtools);
    }

    builder
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

And then run your app as usual, if everything is set up correctly devtools will print the following message:

Screenshot 2023-11-28 at 14.05.20.png

You can click or copy & paste the link into your browser to open up the UI. Alternatively you can navigate to https://devtools.crabnebula.dev and connect from there.

Dependencies

~28–74MB
~1M SLoC