11 releases

0.3.3 Jul 25, 2024
0.3.2 May 29, 2024
0.3.1 Feb 7, 2024
0.3.0 Dec 20, 2023
0.1.0 Sep 18, 2023

#147 in Profiling

Download history 50/week @ 2024-08-12 64/week @ 2024-08-19 30/week @ 2024-08-26 27/week @ 2024-09-02 34/week @ 2024-09-09 53/week @ 2024-09-16 44/week @ 2024-09-23 23/week @ 2024-09-30 13/week @ 2024-10-07 39/week @ 2024-10-14 17/week @ 2024-10-21 11/week @ 2024-10-28 31/week @ 2024-11-04 20/week @ 2024-11-11 34/week @ 2024-11-18 41/week @ 2024-11-25

126 downloads per month

MIT/Apache

73KB
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 devtools

Then add the following snippet to your tauri initialization code:

fn main() {
    #[cfg(debug_assertions)] // only enable instrumentation in development builds
    let devtools = 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

~32–76MB
~1M SLoC