From d2b02267baf96d4e1254427de7987a0a46978550 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 26 May 2024 21:18:54 -0300 Subject: [PATCH 1/2] chore: update README --- crates/devtools-v1/README.md | 12 +----------- crates/devtools/README.md | 16 +++------------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/crates/devtools-v1/README.md b/crates/devtools-v1/README.md index 0f0ab1fa..3ba882a6 100644 --- a/crates/devtools-v1/README.md +++ b/crates/devtools-v1/README.md @@ -14,16 +14,6 @@ Ensure you have [Tauri](https://tauri.app/v1/guides/getting-started/setup/) set cargo add devtools ``` -You also have to enable the `tracing` feature for Tauri, so your `Cargo.toml` file should look as follows: - -```toml -[dependencies] -devtools = "0.2.4" # replace with latest -tauri = { version = "1.5.3", features = ["tracing"] } -[build-dependencies] -tauri-build = "1.5.0" -``` - Then add the following snippet to your tauri initialization code: ```rust @@ -37,7 +27,7 @@ fn main() { let builder = builder.plugin(devtools); builder - .run(tauri::generate_context!("./tauri.conf.json")) + .run(tauri::generate_context!()) .expect("error while running tauri application"); } ``` diff --git a/crates/devtools/README.md b/crates/devtools/README.md index 0f0ab1fa..d7bef29e 100644 --- a/crates/devtools/README.md +++ b/crates/devtools/README.md @@ -11,17 +11,7 @@ Inspect, monitor, and understand your [Tauri](https://tauri.app) application wit Ensure you have [Tauri](https://tauri.app/v1/guides/getting-started/setup/) set up correctly. Then install the Rust instrumentation from crates.io: ```sh -cargo add devtools -``` - -You also have to enable the `tracing` feature for Tauri, so your `Cargo.toml` file should look as follows: - -```toml -[dependencies] -devtools = "0.2.4" # replace with latest -tauri = { version = "1.5.3", features = ["tracing"] } -[build-dependencies] -tauri-build = "1.5.0" +cargo add tauri-plugin-devtools ``` Then add the following snippet to your tauri initialization code: @@ -29,7 +19,7 @@ Then add the following snippet to your tauri initialization code: ```rust fn main() { #[cfg(debug_assertions)] // only enable instrumentation in development builds - let devtools = devtools::init(); + let devtools = tauri_plugin_devtools::init(); let builder = tauri::Builder::default(); @@ -37,7 +27,7 @@ fn main() { let builder = builder.plugin(devtools); builder - .run(tauri::generate_context!("./tauri.conf.json")) + .run(tauri::generate_context!()) .expect("error while running tauri application"); } ``` From b95a18ca3270cdb2a781980ae14a35f3f067124b Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 27 May 2024 07:26:38 -0300 Subject: [PATCH 2/2] add version specifier --- README.md | 2 +- crates/devtools/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d6454e76..11375ca4 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ tauri-build = "1.5.0" Ensure you have [Tauri](https://beta.tauri.app/guides/create/) set up correctly. Then install the Rust instrumentation from crates.io: ```sh -cargo add tauri-plugin-devtools --git https://github.com/crabnebula-dev/devtools +cargo add tauri-plugin-devtools@2.0.0-beta ``` You also have to use Tauri **2.0.0-beta.1** (or later) so your `Cargo.toml` file should look as follows: diff --git a/crates/devtools/README.md b/crates/devtools/README.md index d7bef29e..68710c91 100644 --- a/crates/devtools/README.md +++ b/crates/devtools/README.md @@ -11,7 +11,7 @@ Inspect, monitor, and understand your [Tauri](https://tauri.app) application wit Ensure you have [Tauri](https://tauri.app/v1/guides/getting-started/setup/) set up correctly. Then install the Rust instrumentation from crates.io: ```sh -cargo add tauri-plugin-devtools +cargo add tauri-plugin-devtools@2.0.0-beta ``` Then add the following snippet to your tauri initialization code: