Crate devtools

source ·
Expand description

Instrumentation code that will make your Tauri app compatible with CrabNebula Devtools.

CrabNebula Devtools offers seamless and intuitive debugging, and monitoring of Tauri applications.

The instrumentation is compatible with both the log and tracing ecosystems out-of-the-box.

Example

Make sure to check out the examples sub folder for a fully working setup.

fn main() {
    let devtools_plugin = devtools::init();

    tauri::Builder::default()
        .plugin(devtools_plugin)
        .setup(|_| {
            // It is compatible with the `tracing` ecosystem!
            tracing::info!("Hello World!");

            Ok(())
        })
         // ... the rest of the tauri setup code
}

Structs

  • The builder can be use to customize the instrumentation.

Enums

Functions

  • Initializes the global tracing subscriber.
  • Initializes the global tracing subscriber.