Prechádzať zdrojové kódy

fix(cli.js): detect `CARGO_TARGET_DIR` for local run (#3147)

* fix(cli.js): detect `CARGO_TARGET_DIR` for local run

* [skip ci] revert schema changes
Amr Bashir 3 rokov pred
rodič
commit
4143ffd427
27 zmenil súbory, kde vykonal 435 pridanie a 418 odobranie
  1. 8 2
      .scripts/covector/generate-cli-doc.js
  2. 51 18
      .scripts/covector/generate-config-doc.js
  3. 39 29
      core/tauri/scripts/core.js
  4. 0 0
      examples/api/dist/assets/index.ab727ab4.js
  5. 0 13
      examples/api/dist/assets/index.d86155cb.js
  6. 0 0
      examples/api/dist/assets/vendor.32016365.js
  7. 0 0
      examples/api/dist/assets/vendor.a59520a9.js
  8. 1 1
      examples/api/dist/global.css
  9. 13 15
      examples/api/dist/index.html
  10. 10 12
      examples/api/index.html
  11. 1 1
      examples/api/public/global.css
  12. 148 165
      examples/api/src-tauri/Cargo.lock
  13. 2 2
      examples/api/src/App.svelte
  14. 7 7
      examples/streaming/index.html
  15. 1 1
      tooling/bench/tests/cpu_intensive/public/site.js
  16. 2 2
      tooling/bench/tests/files_transfer/public/index.html
  17. 3 2
      tooling/bench/tests/helloworld/public/index.html
  18. 5 4
      tooling/cli.js/src/helpers/rust-cli.ts
  19. 3 7
      tooling/cli.rs/templates/plugin/backend/examples/vanilla/public/index.html
  20. 1 3
      tooling/cli.rs/templates/plugin/with-api/.changes/config.json
  21. 35 30
      tooling/cli.rs/templates/plugin/with-api/examples/svelte-app/public/global.css
  22. 10 13
      tooling/cli.rs/templates/plugin/with-api/examples/svelte-app/public/index.html
  23. 74 70
      tooling/cli.rs/templates/plugin/with-api/examples/svelte-app/rollup.config.js
  24. 5 5
      tooling/cli.rs/templates/plugin/with-api/examples/svelte-app/src/main.ts
  25. 1 1
      tooling/cli.rs/templates/plugin/with-api/examples/svelte-app/tsconfig.json
  26. 1 1
      tooling/cli.rs/templates/plugin/with-api/webview-dist/index.d.ts
  27. 14 14
      tooling/cli.rs/templates/plugin/with-api/webview-src/rollup.config.js

+ 8 - 2
.scripts/covector/generate-cli-doc.js

@@ -1,7 +1,10 @@
 const childProcess = require('child_process')
 const path = require('path')
 const fs = require('fs')
-const rustCliPath = path.join(__dirname, '../../tooling/cli.rs/target/debug/cargo-tauri')
+const rustCliPath = path.join(
+  __dirname,
+  '../../tooling/cli.rs/target/debug/cargo-tauri'
+)
 const templatePath = path.join(__dirname, '../../docs/.templates/cli.md')
 const targetPath = path.join(__dirname, '../../docs/api/cli.md')
 const template = fs.readFileSync(templatePath, 'utf8')
@@ -11,7 +14,10 @@ const commands = ['info', 'init', 'plugin init', 'dev', 'build']
 let doc = template
 
 for (const cmd of commands) {
-  const output = childProcess.execSync(`${rustCliPath} ${cmd} --help`).toString().split('\n')
+  const output = childProcess
+    .execSync(`${rustCliPath} ${cmd} --help`)
+    .toString()
+    .split('\n')
   output.splice(0, 2)
   output.splice(-1)
   doc = doc.replace(`{${cmd}}`, '```\n' + output.join('\n') + '\n```')

+ 51 - 18
.scripts/covector/generate-config-doc.js

@@ -1,19 +1,21 @@
 const fs = require('fs')
 const path = require('path')
-const schema = JSON.parse(fs.readFileSync('tooling/cli.rs/schema.json').toString())
+const schema = JSON.parse(
+  fs.readFileSync('tooling/cli.rs/schema.json').toString()
+)
 const templatePath = path.join(__dirname, '../../docs/.templates/config.md')
 const targetPath = path.join(__dirname, '../../docs/api/config.md')
 const template = fs.readFileSync(templatePath, 'utf8')
 
 function formatDescription(description) {
-  return description ?
-    description
-    .replace(/`/g, '\\`')
-    .replace(/\n/g, ' ')
-    .replace(/  /g, ' ')
-    .replace(/{/g, '\\{')
-    .replace(/}/g, '\\}') :
-    ''
+  return description
+    ? description
+        .replace(/`/g, '\\`')
+        .replace(/\n/g, ' ')
+        .replace(/  /g, ' ')
+        .replace(/{/g, '\\{')
+        .replace(/}/g, '\\}')
+    : ''
 }
 
 function generatePropertiesEl(schema, anchorRoot, definition, tab) {
@@ -36,10 +38,15 @@ function generatePropertiesEl(schema, anchorRoot, definition, tab) {
         } else {
           const typeName = property.items.$ref.replace('#/definitions/', '')
           const propDefinition = schema.definitions[typeName]
-          const propertyEl = generatePropertiesEl(schema, `${anchorRoot}.${propertyName}`, propDefinition, `${tab}  `)
+          const propertyEl = generatePropertiesEl(
+            schema,
+            `${anchorRoot}.${propertyName}`,
+            propDefinition,
+            `${tab}  `
+          )
           rows.push({
             property: propertyName,
-            optional: ('default' in property) || property.type.includes('null'),
+            optional: 'default' in property || property.type.includes('null'),
             type: `${typeName}[]`,
             description: property.description,
             child: `<Array type="${typeName}">\n${tab}${propertyEl}\n${previousTabLevel}</Array>`
@@ -61,10 +68,16 @@ function generatePropertiesEl(schema, anchorRoot, definition, tab) {
     } else if ('anyOf' in property) {
       const subType = property.anyOf[0].$ref.replace('#/definitions/', '')
       const propDefinition = schema.definitions[subType]
-      const propertyEl = generatePropertiesEl(schema, `${anchorRoot}.${propertyName}`, propDefinition, `${tab}  `)
+      const propertyEl = generatePropertiesEl(
+        schema,
+        `${anchorRoot}.${propertyName}`,
+        propDefinition,
+        `${tab}  `
+      )
       rows.push({
         property: propertyName,
-        optional: property.anyOf.length > 1 && property.anyOf[1].type === 'null',
+        optional:
+          property.anyOf.length > 1 && property.anyOf[1].type === 'null',
         type: subType,
         description: property.description,
         child: propertyEl
@@ -72,7 +85,14 @@ function generatePropertiesEl(schema, anchorRoot, definition, tab) {
     } else if ('allOf' in property) {
       const subType = property.allOf[0].$ref.replace('#/definitions/', '')
       const propDefinition = schema.definitions[subType]
-      const propertyEl = propDefinition.properties ? generatePropertiesEl(schema, `${anchorRoot}.${propertyName}`, propDefinition, `${tab}  `) : undefined
+      const propertyEl = propDefinition.properties
+        ? generatePropertiesEl(
+            schema,
+            `${anchorRoot}.${propertyName}`,
+            propDefinition,
+            `${tab}  `
+          )
+        : undefined
       rows.push({
         property: propertyName,
         optional: 'default' in property,
@@ -85,8 +105,13 @@ function generatePropertiesEl(schema, anchorRoot, definition, tab) {
 
   if (rows.length > 0) {
     const serializedRows = rows
-      .map(row => {
-        const fields = [`property: "${row.property}"`, `optional: ${row.optional}`, `type: "${row.type}"`, `description: \`${formatDescription(row.description)}\``]
+      .map((row) => {
+        const fields = [
+          `property: "${row.property}"`,
+          `optional: ${row.optional}`,
+          `type: "${row.type}"`,
+          `description: \`${formatDescription(row.description)}\``
+        ]
         if (row.child) {
           fields.push(`child: ${row.child}`)
         }
@@ -107,8 +132,16 @@ for (const propertyName in schema.properties) {
   const property = schema.properties[propertyName]
   const definitionName = property.allOf[0].$ref.replace('#/definitions/', '')
   const definition = schema.definitions[definitionName]
-  let contents = `## \`${propertyName}\`\n\n${generatePropertiesEl(schema, propertyName, definition, '  ')}`
+  let contents = `## \`${propertyName}\`\n\n${generatePropertiesEl(
+    schema,
+    propertyName,
+    definition,
+    '  '
+  )}`
   output.push(contents)
 }
 
-fs.writeFileSync(targetPath, template.replace('{properties}', output.join('\n\n')))
+fs.writeFileSync(
+  targetPath,
+  template.replace('{properties}', output.join('\n\n'))
+)

+ 39 - 29
core/tauri/scripts/core.js

@@ -2,8 +2,7 @@
 // SPDX-License-Identifier: Apache-2.0
 // SPDX-License-Identifier: MIT
 
-;
-(function () {
+;(function () {
   function uid() {
     const length = new Int8Array(1)
     window.crypto.getRandomValues(length)
@@ -52,25 +51,24 @@
         return reject(new Error('Invalid argument type.'))
       }
 
-      if (document.readyState === 'complete' || document.readyState === 'interactive') {
-        window.__TAURI_POST_MESSAGE__(
-          cmd, {
+      if (
+        document.readyState === 'complete' ||
+        document.readyState === 'interactive'
+      ) {
+        window.__TAURI_POST_MESSAGE__(cmd, {
+          ...args,
+          callback: callback,
+          error: error,
+          __invokeKey: key || __TAURI_INVOKE_KEY__
+        })
+      } else {
+        window.addEventListener('DOMContentLoaded', function () {
+          window.__TAURI_POST_MESSAGE__(cmd, {
             ...args,
             callback: callback,
             error: error,
             __invokeKey: key || __TAURI_INVOKE_KEY__
-          }
-        )
-      } else {
-        window.addEventListener('DOMContentLoaded', function () {
-          window.__TAURI_POST_MESSAGE__(
-            cmd, {
-              ...args,
-              callback: callback,
-              error: error,
-              __invokeKey: key || __TAURI_INVOKE_KEY__
-            }
-          )
+          })
         })
       }
     })
@@ -90,7 +88,8 @@
               target.target === '_blank'
             ) {
               window.__TAURI_INVOKE__(
-                'tauri', {
+                'tauri',
+                {
                   __tauriModule: 'Shell',
                   message: {
                     cmd: 'open',
@@ -130,7 +129,8 @@
     if (e.target.hasAttribute('data-tauri-drag-region') && e.buttons === 1) {
       // start dragging if the element has a `tauri-drag-region` data attribute and maximize on double-clicking it
       window.__TAURI_INVOKE__(
-        'tauri', {
+        'tauri',
+        {
           __tauriModule: 'Window',
           message: {
             cmd: 'manage',
@@ -147,7 +147,8 @@
   })
 
   window.__TAURI_INVOKE__(
-    'tauri', {
+    'tauri',
+    {
       __tauriModule: 'Event',
       message: {
         cmd: 'listen',
@@ -173,7 +174,8 @@
       return Promise.resolve(window.Notification.permission === 'granted')
     }
     return window.__TAURI_INVOKE__(
-      'tauri', {
+      'tauri',
+      {
         __tauriModule: 'Notification',
         message: {
           cmd: 'isNotificationPermissionGranted'
@@ -192,7 +194,8 @@
   function requestPermission() {
     return window
       .__TAURI_INVOKE__(
-        'tauri', {
+        'tauri',
+        {
           __tauriModule: 'Notification',
           message: {
             cmd: 'requestNotificationPermission'
@@ -214,13 +217,17 @@
     isPermissionGranted().then(function (permission) {
       if (permission) {
         return window.__TAURI_INVOKE__(
-          'tauri', {
+          'tauri',
+          {
             __tauriModule: 'Notification',
             message: {
               cmd: 'notification',
-              options: typeof options === 'string' ? {
-                title: options
-              } : options
+              options:
+                typeof options === 'string'
+                  ? {
+                      title: options
+                    }
+                  : options
             }
           },
           _KEY_VALUE_
@@ -263,7 +270,8 @@
 
   window.alert = function (message) {
     window.__TAURI_INVOKE__(
-      'tauri', {
+      'tauri',
+      {
         __tauriModule: 'Dialog',
         message: {
           cmd: 'messageDialog',
@@ -276,7 +284,8 @@
 
   window.confirm = function (message) {
     return window.__TAURI_INVOKE__(
-      'tauri', {
+      'tauri',
+      {
         __tauriModule: 'Dialog',
         message: {
           cmd: 'confirmDialog',
@@ -291,7 +300,8 @@
   if (navigator.userAgent.includes('Mac')) {
     window.print = function () {
       return window.__TAURI_INVOKE__(
-        'tauri', {
+        'tauri',
+        {
           __tauriModule: 'Window',
           message: {
             cmd: 'manage',

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
examples/api/dist/assets/index.ab727ab4.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 13
examples/api/dist/assets/index.d86155cb.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
examples/api/dist/assets/vendor.32016365.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
examples/api/dist/assets/vendor.a59520a9.js


+ 1 - 1
examples/api/dist/global.css

@@ -185,4 +185,4 @@ main {
   box-shadow: rgba(0, 0, 0, 0.06) 0px 0px 10px;
   border-left: 6px solid #ff0000;
   background: #f0f4f5;
-}
+}

+ 13 - 15
examples/api/dist/index.html

@@ -1,19 +1,17 @@
 <!DOCTYPE html>
 <html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <link rel="stylesheet" href="/global.css" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <title>Svelte + Vite App</title>
+    <script type="module" crossorigin src="/assets/index.ab727ab4.js"></script>
+    <link rel="modulepreload" href="/assets/vendor.32016365.js">
+    <link rel="stylesheet" href="/assets/index.b706bb41.css">
+  </head>
 
-<head>
-  <meta charset="UTF-8" />
-  <link rel="stylesheet" href="/global.css" />
-  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <title>Svelte + Vite App</title>
-  <script type="module" crossorigin src="/assets/index.d86155cb.js"></script>
-  <link rel="modulepreload" href="/assets/vendor.a59520a9.js">
-  <link rel="stylesheet" href="/assets/index.b706bb41.css">
-</head>
-
-<body>
-  <div id="app"></div>
-  
-</body>
-
+  <body>
+    <div id="app"></div>
+    
+  </body>
 </html>

+ 10 - 12
examples/api/index.html

@@ -1,16 +1,14 @@
 <!DOCTYPE html>
 <html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <link rel="stylesheet" href="/global.css" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <title>Svelte + Vite App</title>
+  </head>
 
-<head>
-  <meta charset="UTF-8" />
-  <link rel="stylesheet" href="/global.css" />
-  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <title>Svelte + Vite App</title>
-</head>
-
-<body>
-  <div id="app"></div>
-  <script type="module" src="/src/main.js"></script>
-</body>
-
+  <body>
+    <div id="app"></div>
+    <script type="module" src="/src/main.js"></script>
+  </body>
 </html>

+ 1 - 1
examples/api/public/global.css

@@ -185,4 +185,4 @@ main {
   box-shadow: rgba(0, 0, 0, 0.06) 0px 0px 10px;
   border-left: 6px solid #ff0000;
   background: #f0f4f5;
-}
+}

+ 148 - 165
examples/api/src-tauri/Cargo.lock

@@ -34,9 +34,9 @@ dependencies = [
 
 [[package]]
 name = "anyhow"
-version = "1.0.48"
+version = "1.0.52"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "62e1f47f7dc0422027a4e370dd4548d4d66b26782e513e98dca1e689e058a80e"
+checksum = "84450d0b4a8bd1ba4144ce8ce718fbc5d071358b1e5384bace6536b3d1f2d5b3"
 
 [[package]]
 name = "api"
@@ -247,9 +247,9 @@ dependencies = [
 
 [[package]]
 name = "cache-padded"
-version = "1.1.1"
+version = "1.2.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba"
+checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c"
 
 [[package]]
 name = "cairo-rs"
@@ -345,9 +345,9 @@ dependencies = [
 
 [[package]]
 name = "clap"
-version = "3.0.0-rc.7"
+version = "3.0.0-rc.9"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9468f8012246b0836c6fd11725102b0844254985f2462b6c637d50040ef49df0"
+checksum = "c7843ae7a539bef687e018bf9edf7e87728024b29d02b0f8409726be8880ae1a"
 dependencies = [
  "atty",
  "bitflags",
@@ -494,9 +494,9 @@ dependencies = [
 
 [[package]]
 name = "crc32fast"
-version = "1.2.2"
+version = "1.3.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3825b1e8580894917dc4468cb634a1b4e9745fddc854edad72d9c04644c0319f"
+checksum = "738c290dfaea84fc1ca15ad9c168d083b05a714e1efddd8edaab678dc28d2836"
 dependencies = [
  "cfg-if 1.0.0",
 ]
@@ -553,7 +553,7 @@ checksum = "754b69d351cdc2d8ee09ae203db831e005560fc6030da058f86ad60c92a9cb0a"
 dependencies = [
  "cssparser-macros",
  "dtoa-short",
- "itoa",
+ "itoa 0.4.8",
  "matches",
  "phf 0.8.0",
  "proc-macro2",
@@ -646,14 +646,14 @@ dependencies = [
 
 [[package]]
 name = "derive_more"
-version = "0.99.16"
+version = "0.99.17"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40eebddd2156ce1bb37b20bbe5151340a31828b1f2d22ba4141f3531710e38df"
+checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321"
 dependencies = [
  "convert_case",
  "proc-macro2",
  "quote",
- "rustc_version",
+ "rustc_version 0.4.0",
  "syn",
 ]
 
@@ -754,9 +754,9 @@ dependencies = [
 
 [[package]]
 name = "fastrand"
-version = "1.5.0"
+version = "1.6.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b394ed3d285a429378d3b384b9eb1285267e7df4b166df24b7a6939a04dc392e"
+checksum = "779d043b6a0b90cc4c0ed7ee380a6504394cee7efd7db050e3774eee387324b2"
 dependencies = [
  "instant",
 ]
@@ -768,7 +768,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "1e1c54951450cbd39f3dbcf1005ac413b49487dabf18a720ad2383eccfeffb92"
 dependencies = [
  "memoffset",
- "rustc_version",
+ "rustc_version 0.3.3",
 ]
 
 [[package]]
@@ -838,9 +838,9 @@ dependencies = [
 
 [[package]]
 name = "futures"
-version = "0.3.18"
+version = "0.3.19"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8cd0210d8c325c245ff06fd95a3b13689a1a276ac8cfa8e8720cb840bfb84b9e"
+checksum = "28560757fe2bb34e79f907794bb6b22ae8b0e5c669b638a1132f2592b19035b4"
 dependencies = [
  "futures-channel",
  "futures-core",
@@ -853,9 +853,9 @@ dependencies = [
 
 [[package]]
 name = "futures-channel"
-version = "0.3.18"
+version = "0.3.19"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7fc8cd39e3dbf865f7340dce6a2d401d24fd37c6fe6c4f0ee0de8bfca2252d27"
+checksum = "ba3dda0b6588335f360afc675d0564c17a77a2bda81ca178a4b6081bd86c7f0b"
 dependencies = [
  "futures-core",
  "futures-sink",
@@ -863,15 +863,15 @@ dependencies = [
 
 [[package]]
 name = "futures-core"
-version = "0.3.18"
+version = "0.3.19"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "629316e42fe7c2a0b9a65b47d159ceaa5453ab14e8f0a3c5eedbb8cd55b4a445"
+checksum = "d0c8ff0461b82559810cdccfde3215c3f373807f5e5232b71479bff7bb2583d7"
 
 [[package]]
 name = "futures-executor"
-version = "0.3.18"
+version = "0.3.19"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7b808bf53348a36cab739d7e04755909b9fcaaa69b7d7e588b37b6ec62704c97"
+checksum = "29d6d2ff5bb10fb95c85b8ce46538a2e5f5e7fdc755623a7d4529ab8a4ed9d2a"
 dependencies = [
  "futures-core",
  "futures-task",
@@ -880,9 +880,9 @@ dependencies = [
 
 [[package]]
 name = "futures-io"
-version = "0.3.18"
+version = "0.3.19"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e481354db6b5c353246ccf6a728b0c5511d752c08da7260546fc0933869daa11"
+checksum = "b1f9d34af5a1aac6fb380f735fe510746c38067c5bf16c7fd250280503c971b2"
 
 [[package]]
 name = "futures-lite"
@@ -901,9 +901,9 @@ dependencies = [
 
 [[package]]
 name = "futures-macro"
-version = "0.3.18"
+version = "0.3.19"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a89f17b21645bc4ed773c69af9c9a0effd4a3f1a3876eadd453469f8854e7fdd"
+checksum = "6dbd947adfffb0efc70599b3ddcf7b5597bb5fa9e245eb99f62b3a5f7bb8bd3c"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -912,21 +912,21 @@ dependencies = [
 
 [[package]]
 name = "futures-sink"
-version = "0.3.18"
+version = "0.3.19"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "996c6442437b62d21a32cd9906f9c41e7dc1e19a9579843fad948696769305af"
+checksum = "e3055baccb68d74ff6480350f8d6eb8fcfa3aa11bdc1a1ae3afdd0514617d508"
 
 [[package]]
 name = "futures-task"
-version = "0.3.18"
+version = "0.3.19"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dabf1872aaab32c886832f2276d2f5399887e2bd613698a02359e4ea83f8de12"
+checksum = "6ee7c6485c30167ce4dfb83ac568a849fe53274c831081476ee13e0dce1aad72"
 
 [[package]]
 name = "futures-util"
-version = "0.3.18"
+version = "0.3.19"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41d22213122356472061ac0f1ab2cee28d2bac8491410fd68c2af53d1cedb83e"
+checksum = "d9b5cf40b47a271f77a8b1bec03ca09044d99d2372c0de244e66430761127164"
 dependencies = [
  "futures-channel",
  "futures-core",
@@ -1252,13 +1252,13 @@ dependencies = [
 
 [[package]]
 name = "http"
-version = "0.2.5"
+version = "0.2.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1323096b05d41827dadeaee54c9981958c0f94e670bc94ed80037d1a7b8b186b"
+checksum = "31f4c6746584866f0feabcc69893c5b51beef3831656a968ed7ae254cdc4fd03"
 dependencies = [
  "bytes",
  "fnv",
- "itoa",
+ "itoa 1.0.1",
 ]
 
 [[package]]
@@ -1351,9 +1351,9 @@ dependencies = [
 
 [[package]]
 name = "itertools"
-version = "0.10.1"
+version = "0.10.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf"
+checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3"
 dependencies = [
  "either",
 ]
@@ -1364,6 +1364,12 @@ version = "0.4.8"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
 
+[[package]]
+name = "itoa"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"
+
 [[package]]
 name = "javascriptcore-rs"
 version = "0.15.2"
@@ -1454,9 +1460,9 @@ dependencies = [
 
 [[package]]
 name = "libc"
-version = "0.2.108"
+version = "0.2.112"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8521a1b57e76b1ec69af7599e75e38e7b7fad6610f037db8c79b127201b5d119"
+checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125"
 
 [[package]]
 name = "lock_api"
@@ -1478,9 +1484,9 @@ dependencies = [
 
 [[package]]
 name = "loom"
-version = "0.5.3"
+version = "0.5.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5df2c4aeb432e60c9e5ae517ca8ed8b63556ce23093b2758fc8837d75439c5ec"
+checksum = "edc5c7d328e32cc4954e8e01193d7f0ef5ab257b5090b70a964e099a36034309"
 dependencies = [
  "cfg-if 1.0.0",
  "generator",
@@ -1555,9 +1561,9 @@ checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
 
 [[package]]
 name = "memoffset"
-version = "0.6.4"
+version = "0.6.5"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9"
+checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"
 dependencies = [
  "autocfg",
 ]
@@ -1732,9 +1738,9 @@ dependencies = [
 
 [[package]]
 name = "num_cpus"
-version = "1.13.0"
+version = "1.13.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3"
+checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
 dependencies = [
  "hermit-abi",
  "libc",
@@ -1742,19 +1748,18 @@ dependencies = [
 
 [[package]]
 name = "num_enum"
-version = "0.5.4"
+version = "0.5.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f9bd055fb730c4f8f4f57d45d35cd6b3f0980535b056dc7ff119cee6a66ed6f"
+checksum = "720d3ea1055e4e4574c0c0b0f8c3fd4f24c4cdaf465948206dea090b57b526ad"
 dependencies = [
- "derivative",
  "num_enum_derive",
 ]
 
 [[package]]
 name = "num_enum_derive"
-version = "0.5.4"
+version = "0.5.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "486ea01961c4a818096de679a8b740b26d9033146ac5291b1c98557658f8cdd9"
+checksum = "0d992b768490d7fe0d8586d9b5745f6c49f557da6d81dc982b1d167ad4edbb21"
 dependencies = [
  "proc-macro-crate 1.1.0",
  "proc-macro2",
@@ -1799,9 +1804,9 @@ checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5"
 
 [[package]]
 name = "open"
-version = "2.0.1"
+version = "2.0.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b46b233de7d83bc167fe43ae2dda3b5b84e80e09cceba581e4decb958a4896bf"
+checksum = "176ee4b630d174d2da8241336763bb459281dddc0f4d87f72c3b1efc9a6109b7"
 dependencies = [
  "pathdiff",
  "winapi",
@@ -1829,9 +1834,9 @@ checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a"
 
 [[package]]
 name = "openssl-sys"
-version = "0.9.71"
+version = "0.9.72"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7df13d165e607909b363a4757a6f133f8a818a74e9d3a98d09c6128e15fa4c73"
+checksum = "7e46109c383602735fa0a2e48dd2b7c892b048e1bf69e5c3b1d804b7d9c203cb"
 dependencies = [
  "autocfg",
  "cc",
@@ -1960,9 +1965,9 @@ dependencies = [
 
 [[package]]
 name = "phf"
-version = "0.10.0"
+version = "0.10.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b9fc3db1018c4b59d7d582a739436478b6035138b6aecbce989fc91c3e98409f"
+checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259"
 dependencies = [
  "phf_macros 0.10.0",
  "phf_shared 0.10.0",
@@ -2047,9 +2052,9 @@ dependencies = [
 
 [[package]]
 name = "pin-project-lite"
-version = "0.2.7"
+version = "0.2.8"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443"
+checksum = "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c"
 
 [[package]]
 name = "pin-utils"
@@ -2059,9 +2064,9 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
 
 [[package]]
 name = "pkg-config"
-version = "0.3.22"
+version = "0.3.24"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12295df4f294471248581bc09bef3c38a5e46f1e36d6a37353621a0c6c357e1f"
+checksum = "58893f751c9b0412871a09abd62ecd2a00298c6c83befa223ef98c52aef40cbe"
 
 [[package]]
 name = "png"
@@ -2102,9 +2107,9 @@ dependencies = [
 
 [[package]]
 name = "ppv-lite86"
-version = "0.2.15"
+version = "0.2.16"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ed0cfbc8191465bed66e1718596ee0b0b35d5ee1f41c5df2189d0fe8bde535ba"
+checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
 
 [[package]]
 name = "precomputed-hash"
@@ -2163,18 +2168,18 @@ checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5"
 
 [[package]]
 name = "proc-macro2"
-version = "1.0.32"
+version = "1.0.36"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43"
+checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
 dependencies = [
  "unicode-xid",
 ]
 
 [[package]]
 name = "quote"
-version = "1.0.10"
+version = "1.0.14"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05"
+checksum = "47aa80447ce4daf1717500037052af176af5d38cc3e571d9ec1c7353fc10c87d"
 dependencies = [
  "proc-macro2",
 ]
@@ -2272,11 +2277,12 @@ dependencies = [
 
 [[package]]
 name = "raw-window-handle"
-version = "0.3.3"
+version = "0.3.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a441a7a6c80ad6473bd4b74ec1c9a4c951794285bf941c2126f607c72e48211"
+checksum = "e28f55143d0548dad60bb4fbdc835a3d7ac6acc3324506450c5fdd6e42903a76"
 dependencies = [
  "libc",
+ "raw-window-handle 0.4.2",
 ]
 
 [[package]]
@@ -2428,17 +2434,26 @@ dependencies = [
  "semver 0.11.0",
 ]
 
+[[package]]
+name = "rustc_version"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
+dependencies = [
+ "semver 1.0.4",
+]
+
 [[package]]
 name = "rustversion"
-version = "1.0.5"
+version = "1.0.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61b3909d758bb75c79f23d4736fac9433868679d3ad2ea7a61e3c25cfda9a088"
+checksum = "f2cc38e8fa666e2de3c4aba7edeb5ffc5246c1c2ed0e3d17e560aeeba736b23f"
 
 [[package]]
 name = "ryu"
-version = "1.0.5"
+version = "1.0.9"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
+checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f"
 
 [[package]]
 name = "same-file"
@@ -2540,18 +2555,18 @@ dependencies = [
 
 [[package]]
 name = "serde"
-version = "1.0.130"
+version = "1.0.132"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913"
+checksum = "8b9875c23cf305cd1fd7eb77234cbb705f21ea6a72c637a5c6db5fe4b8e7f008"
 dependencies = [
  "serde_derive",
 ]
 
 [[package]]
 name = "serde_derive"
-version = "1.0.130"
+version = "1.0.132"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b"
+checksum = "ecc0db5cb2556c0e558887d9bbdcf6ac4471e83ff66cf696e5419024d1606276"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -2560,11 +2575,11 @@ dependencies = [
 
 [[package]]
 name = "serde_json"
-version = "1.0.72"
+version = "1.0.73"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0ffa0837f2dfa6fb90868c2b5468cad482e175f7dad97e7421951e663f2b527"
+checksum = "bcbd0344bc6533bc7ec56df11d42fb70f1b912351c0825ccb7211b59d8af7cf5"
 dependencies = [
- "itoa",
+ "itoa 1.0.1",
  "ryu",
  "serde",
 ]
@@ -2587,7 +2602,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "edfa57a7f8d9c1d260a549e7224100f6c43d43f9103e06dd8b4095a9b2b43ce9"
 dependencies = [
  "form_urlencoded",
- "itoa",
+ "itoa 0.4.8",
  "ryu",
  "serde",
 ]
@@ -2763,9 +2778,9 @@ dependencies = [
 
 [[package]]
 name = "syn"
-version = "1.0.82"
+version = "1.0.84"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8daf5dd0bb60cbd4137b1b587d2fc0ae729bc07cf01cd70b36a1ed5ade3b9d59"
+checksum = "ecb2e6da8ee5eb9a61068762a32fa9619cc591ceb055b3687f4cd4051ec2e06b"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -2806,7 +2821,7 @@ dependencies = [
 [[package]]
 name = "tao"
 version = "0.5.2"
-source = "git+https://github.com/tauri-apps/tao?branch=next#a297e149b432ccb69775a8559ff52d48d1d39615"
+source = "git+https://github.com/tauri-apps/tao?branch=next#059630cf8f9fa842b7755b4758f330654a1a4195"
 dependencies = [
  "bitflags",
  "cairo-rs",
@@ -2834,19 +2849,20 @@ dependencies = [
  "ndk-sys",
  "objc",
  "parking_lot",
- "raw-window-handle 0.3.3",
+ "raw-window-handle 0.3.4",
  "scopeguard",
  "serde",
  "unicode-segmentation",
- "windows 0.25.0",
+ "windows 0.29.0",
+ "windows_macros",
  "x11-dl",
 ]
 
 [[package]]
 name = "tar"
-version = "0.4.37"
+version = "0.4.38"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d6f5515d3add52e0bbdcad7b83c388bb36ba7b754dda3b5f5bc2d38640cdba5c"
+checksum = "4b55807c0344e1e6c04d7c965f5289c39a8d94ae23ed5c0b57aabac549f871c6"
 dependencies = [
  "filetime",
  "libc",
@@ -2952,7 +2968,7 @@ dependencies = [
  "thiserror",
  "uuid",
  "webview2-com",
- "windows 0.25.0",
+ "windows 0.29.0",
 ]
 
 [[package]]
@@ -2967,7 +2983,7 @@ dependencies = [
  "tauri-utils",
  "uuid",
  "webview2-com",
- "windows 0.25.0",
+ "windows 0.29.0",
  "wry",
 ]
 
@@ -2978,7 +2994,7 @@ dependencies = [
  "heck 0.4.0",
  "html5ever",
  "kuchiki",
- "phf 0.10.0",
+ "phf 0.10.1",
  "proc-macro2",
  "quote",
  "serde",
@@ -3154,9 +3170,9 @@ dependencies = [
 
 [[package]]
 name = "tracing-subscriber"
-version = "0.3.2"
+version = "0.3.5"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7507ec620f809cdf07cccb5bc57b13069a88031b795efd4079b1c71b66c1613d"
+checksum = "5d81bfa81424cc98cb034b837c985b7a290f592e5b4322f353f94a0ab0f9f594"
 dependencies = [
  "ansi_term",
  "lazy_static",
@@ -3172,9 +3188,9 @@ dependencies = [
 
 [[package]]
 name = "typenum"
-version = "1.14.0"
+version = "1.15.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b63708a265f51345575b27fe43f9500ad611579e764c79edbc2037b1121959ec"
+checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987"
 
 [[package]]
 name = "ucd-trie"
@@ -3251,9 +3267,9 @@ checksum = "1c18c859eead79d8b95d09e4678566e8d70105c4e7b251f707a03df32442661b"
 
 [[package]]
 name = "version_check"
-version = "0.9.3"
+version = "0.9.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
+checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
 
 [[package]]
 name = "void"
@@ -3414,20 +3430,21 @@ dependencies = [
 
 [[package]]
 name = "webview2-com"
-version = "0.7.0"
+version = "0.9.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "abdc9ca7cebd96a1005d5ba1e9d70c61c0f6c276a41cddaeecb7842d436ab3bc"
+checksum = "2b0f21eed16a0078ef52de94d15d6e3a22f9998cf45bdabaf9ef4a235ae235ac"
 dependencies = [
  "webview2-com-macros",
  "webview2-com-sys",
- "windows 0.25.0",
+ "windows 0.29.0",
+ "windows_macros",
 ]
 
 [[package]]
 name = "webview2-com-macros"
-version = "0.4.0"
+version = "0.5.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07bca4b354035275764ea4ca8d6bfa74cc5b0e8126e7cd675ee327574b59e13d"
+checksum = "1515c6c82fcee93f6edaacc72c8e233dbe4ff3ca569dce1901dfc36c404a3e99"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -3436,15 +3453,16 @@ dependencies = [
 
 [[package]]
 name = "webview2-com-sys"
-version = "0.7.0"
+version = "0.9.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "73472d7f0e9038b58204cb3f582ee138a8c181719dc6825ea03371ad085c6058"
+checksum = "a56fe9356e3729233bed63e7c002c0f5064f5d2148f169ce77eec8932a98c4c0"
 dependencies = [
  "regex",
  "serde",
  "serde_json",
  "thiserror",
- "windows 0.25.0",
+ "windows 0.29.0",
+ "windows-bindgen",
 ]
 
 [[package]]
@@ -3505,29 +3523,13 @@ dependencies = [
  "windows_x86_64_msvc 0.24.0",
 ]
 
-[[package]]
-name = "windows"
-version = "0.25.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e46c474738425c090573ecf5472d54ee5f78132e6195d0bbfcc2aabc0ed29f37"
-dependencies = [
- "windows_aarch64_msvc 0.25.0",
- "windows_gen",
- "windows_i686_gnu 0.25.0",
- "windows_i686_msvc 0.25.0",
- "windows_macros",
- "windows_reader",
- "windows_x86_64_gnu 0.25.0",
- "windows_x86_64_msvc 0.25.0",
-]
-
 [[package]]
 name = "windows"
 version = "0.29.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "aac7fef12f4b59cd0a29339406cc9203ab44e440ddff6b3f5a41455349fa9cf3"
 dependencies = [
- "windows_aarch64_msvc 0.29.0",
+ "windows_aarch64_msvc",
  "windows_i686_gnu 0.29.0",
  "windows_i686_msvc 0.29.0",
  "windows_x86_64_gnu 0.29.0",
@@ -3535,10 +3537,14 @@ dependencies = [
 ]
 
 [[package]]
-name = "windows_aarch64_msvc"
-version = "0.25.0"
+name = "windows-bindgen"
+version = "0.29.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3022d174000fcaeb6f95933fb04171ea0e21b9289ac57fe4400bfa148e41df79"
+checksum = "b01138bf46333583966ea4b86fd4f61a9b524c0f5f88bc3c18768d6b66cb6c4e"
+dependencies = [
+ "windows_quote",
+ "windows_reader",
+]
 
 [[package]]
 name = "windows_aarch64_msvc"
@@ -3548,9 +3554,9 @@ checksum = "c3d027175d00b01e0cbeb97d6ab6ebe03b12330a35786cbaca5252b1c4bf5d9b"
 
 [[package]]
 name = "windows_gen"
-version = "0.25.0"
+version = "0.29.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "54e0f0e40e950724f92de0f714817c7030a88161738b9b1c58d62c817246fe1c"
+checksum = "e59eb69ef41a029911bb604a850f70ec1f58c8587511bc10ed84a3465931df0b"
 dependencies = [
  "windows_quote",
  "windows_reader",
@@ -3562,12 +3568,6 @@ version = "0.24.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "c0866510a3eca9aed73a077490bbbf03e5eaac4e1fd70849d89539e5830501fd"
 
-[[package]]
-name = "windows_i686_gnu"
-version = "0.25.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03b1584eebf06654708eab4301152032c13c1e47f4a754ffc93c733f10993e85"
-
 [[package]]
 name = "windows_i686_gnu"
 version = "0.29.0"
@@ -3580,12 +3580,6 @@ version = "0.24.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "bf0ffed56b7e9369a29078d2ab3aaeceea48eb58999d2cff3aa2494a275b95c6"
 
-[[package]]
-name = "windows_i686_msvc"
-version = "0.25.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f49df16591e9ad429997ec57d462b0cc45168f639d03489e8c2e933ea9c389d7"
-
 [[package]]
 name = "windows_i686_msvc"
 version = "0.29.0"
@@ -3594,9 +3588,9 @@ checksum = "8602f6c418b67024be2996c512f5f995de3ba417f4c75af68401ab8756796ae4"
 
 [[package]]
 name = "windows_macros"
-version = "0.25.0"
+version = "0.29.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6103bcf1a7396d66f6f08a2d67d8a2ab34efaf4b1d7567301af2c002507c8c3b"
+checksum = "6f6443f71f760ce91f4cc7fc81ee78f680dccb8ec110c52a92ec857a7def39a3"
 dependencies = [
  "syn",
  "windows_gen",
@@ -3606,15 +3600,15 @@ dependencies = [
 
 [[package]]
 name = "windows_quote"
-version = "0.25.0"
+version = "0.29.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e414df8d5dd2013f2317fdc414d3ad035effcb7aef1f16bf508ac5743154835a"
+checksum = "1dd83f20d7c391dc3b115a7e8a0851b71d0a9c356be2791571e858063b5f823c"
 
 [[package]]
 name = "windows_reader"
-version = "0.25.0"
+version = "0.29.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8132c9fb77903d852ea20053af816bd15c088a6e8d283b8283e80353347bb6b9"
+checksum = "d87b34c04457bad3c5436ffe1ed262c908228bb634e3bda34f4ce2c252495787"
 
 [[package]]
 name = "windows_x86_64_gnu"
@@ -3622,12 +3616,6 @@ version = "0.24.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "384a173630588044205a2993b6864a2f56e5a8c1e7668c07b93ec18cf4888dc4"
 
-[[package]]
-name = "windows_x86_64_gnu"
-version = "0.25.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2cb06177184100374f97d5e7261ee0b6adefa8ee32e38f87518ca22b519bb80e"
-
 [[package]]
 name = "windows_x86_64_gnu"
 version = "0.29.0"
@@ -3640,12 +3628,6 @@ version = "0.24.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "9bd8f062d8ca5446358159d79a90be12c543b3a965c847c8f3eedf14b321d399"
 
-[[package]]
-name = "windows_x86_64_msvc"
-version = "0.25.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3c27bcbb33ddbed3569e36c14775c99f72b97c72ce49f81d128637fb48a061f"
-
 [[package]]
 name = "windows_x86_64_msvc"
 version = "0.29.0"
@@ -3675,7 +3657,7 @@ dependencies = [
 [[package]]
 name = "wry"
 version = "0.12.2"
-source = "git+https://github.com/tauri-apps/wry?rev=81e92bd2539a27cd2aa169adc6a52f4f78e00292#81e92bd2539a27cd2aa169adc6a52f4f78e00292"
+source = "git+https://github.com/tauri-apps/wry?rev=3284f8d442978269f7654edbdfc9bc51022eaa40#3284f8d442978269f7654edbdfc9bc51022eaa40"
 dependencies = [
  "cocoa",
  "core-graphics 0.22.3",
@@ -3697,7 +3679,8 @@ dependencies = [
  "webkit2gtk",
  "webkit2gtk-sys",
  "webview2-com",
- "windows 0.25.0",
+ "windows 0.29.0",
+ "windows_macros",
 ]
 
 [[package]]
@@ -3777,18 +3760,18 @@ dependencies = [
 
 [[package]]
 name = "zstd"
-version = "0.9.0+zstd.1.5.0"
+version = "0.9.1+zstd.1.5.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07749a5dc2cb6b36661290245e350f15ec3bbb304e493db54a1d354480522ccd"
+checksum = "538b8347df9257b7fbce37677ef7535c00a3c7bf1f81023cc328ed7fe4b41de8"
 dependencies = [
  "zstd-safe",
 ]
 
 [[package]]
 name = "zstd-safe"
-version = "4.1.1+zstd.1.5.0"
+version = "4.1.2+zstd.1.5.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c91c90f2c593b003603e5e0493c837088df4469da25aafff8bce42ba48caf079"
+checksum = "9fb4cfe2f6e6d35c5d27ecd9d256c4b6f7933c4895654917460ec56c29336cc1"
 dependencies = [
  "libc",
  "zstd-sys",
@@ -3796,9 +3779,9 @@ dependencies = [
 
 [[package]]
 name = "zstd-sys"
-version = "1.6.1+zstd.1.5.0"
+version = "1.6.2+zstd.1.5.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "615120c7a2431d16cf1cf979e7fc31ba7a5b5e5707b29c8a99e5dbf8a8392a33"
+checksum = "2daf2f248d9ea44454bfcb2516534e8b8ad2fc91bf818a1885495fc42bc8ac9f"
 dependencies = [
  "cc",
  "libc",

+ 2 - 2
examples/api/src/App.svelte

@@ -142,9 +142,9 @@
   <div id="response" style="white-space: pre-line">
     <p class="flex row just-around">
       <strong>Tauri Console</strong>
-      <a class="nv" on:click={()=> {
+      <span class="nv" on:click={()=> {
         responses.update(() => []);
-        }}>clear</a>
+        }}>clear</span>
     </p>
     {@html response}
   </div>

+ 7 - 7
examples/streaming/index.html

@@ -16,16 +16,16 @@
       <source src="stream://example/test_video.mp4" type="video/mp4" />
     </video>
     <script>
-      (function () {
-        if (navigator.userAgent.includes("Windows")) {
-          const video = document.getElementById("video_source");
-          const sources = video.getElementsByTagName("source");
+      ;(function () {
+        if (navigator.userAgent.includes('Windows')) {
+          const video = document.getElementById('video_source')
+          const sources = video.getElementsByTagName('source')
           // on windows the custom protocl should be the host
           // followed by the complete path
-          sources[0].src = "https://stream.example/test_video.mp4";
-          video.load();
+          sources[0].src = 'https://stream.example/test_video.mp4'
+          video.load()
         }
-      })();
+      })()
     </script>
   </body>
 </html>

+ 1 - 1
tooling/bench/tests/cpu_intensive/public/site.js

@@ -17,7 +17,7 @@ const onMessage = (message) => {
 
   if (message.data.status === 'done') {
     // tell tauri that we are done
-    window.__TAURI__.invoke('app_completed_successfully');
+    window.__TAURI__.invoke('app_completed_successfully')
   }
 
   status.innerHTML = `${prefix} Found <code>${message.data.count}</code> prime numbers in <code>${message.data.time}ms</code>`

+ 2 - 2
tooling/bench/tests/files_transfer/public/index.html

@@ -25,11 +25,11 @@
           })
           .then((_data) => {
             // success
-            window.__TAURI__.invoke('app_should_close', {exitCode: 0});
+            window.__TAURI__.invoke('app_should_close', { exitCode: 0 })
           })
           .catch((_error) => {
             // error
-            window.__TAURI__.invoke('app_should_close', {exitCode: 1});
+            window.__TAURI__.invoke('app_should_close', { exitCode: 1 })
           })
       })
     </script>

+ 3 - 2
tooling/bench/tests/helloworld/public/index.html

@@ -10,8 +10,9 @@
     <h1>Welcome to Tauri!</h1>
 
     <script>
-      window.addEventListener('DOMContentLoaded', (event) => 
-        window.__TAURI__.invoke('app_loaded_successfully'));
+      window.addEventListener('DOMContentLoaded', (event) =>
+        window.__TAURI__.invoke('app_loaded_successfully')
+      )
     </script>
   </body>
 </html>

+ 5 - 4
tooling/cli.js/src/helpers/rust-cli.ts

@@ -54,10 +54,11 @@ export async function runOnRustCli(
       // running local CLI since test directory exists
       const cliPath = resolve(targetPath, '../cli.rs')
       spawnSync('cargo', ['build', '--release'], cliPath)
-      const localCliPath = resolve(
-        targetPath,
-        '../cli.rs/target/release/cargo-tauri'
-      )
+      const localCliPath = process.env.CARGO_TARGET_DIR
+        ? join(process.env.CARGO_TARGET_DIR, 'release/cargo-tauri')
+        : process.env.CARGO_BUILD_TARGET_DIR
+        ? join(process.env.CARGO_BUILD_TARGET_DIR, 'release/cargo-tauri')
+        : resolve(targetPath, '../cli.rs/target/release/cargo-tauri')
       pid = spawn(localCliPath, ['tauri', command, ...args], cwd, onClose)
     } else {
       spawnSync(

+ 3 - 7
tooling/cli.rs/templates/plugin/backend/examples/vanilla/public/index.html

@@ -1,9 +1,5 @@
 <html>
-
-<body>
-  <div>
-    Plugin example
-  </div>
-</body>
-
+  <body>
+    <div>Plugin example</div>
+  </body>
 </html>

+ 1 - 3
tooling/cli.rs/templates/plugin/with-api/.changes/config.json

@@ -20,9 +20,7 @@
     "tauri-plugin-{{ plugin_name }}-api": {
       "path": ".",
       "manager": "javascript",
-      "dependencies": [
-        "tauri-plugin-{{ plugin_name }}"
-      ]
+      "dependencies": ["tauri-plugin-{{ plugin_name }}"]
     }
   }
 }

+ 35 - 30
tooling/cli.rs/templates/plugin/with-api/examples/svelte-app/public/global.css

@@ -1,63 +1,68 @@
-html, body {
-	position: relative;
-	width: 100%;
-	height: 100%;
+html,
+body {
+  position: relative;
+  width: 100%;
+  height: 100%;
 }
 
 body {
-	color: #333;
-	margin: 0;
-	padding: 8px;
-	box-sizing: border-box;
-	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
+  color: #333;
+  margin: 0;
+  padding: 8px;
+  box-sizing: border-box;
+  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
+    Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
 }
 
 a {
-	color: rgb(0,100,200);
-	text-decoration: none;
+  color: rgb(0, 100, 200);
+  text-decoration: none;
 }
 
 a:hover {
-	text-decoration: underline;
+  text-decoration: underline;
 }
 
 a:visited {
-	color: rgb(0,80,160);
+  color: rgb(0, 80, 160);
 }
 
 label {
-	display: block;
+  display: block;
 }
 
-input, button, select, textarea {
-	font-family: inherit;
-	font-size: inherit;
-	-webkit-padding: 0.4em 0;
-	padding: 0.4em;
-	margin: 0 0 0.5em 0;
-	box-sizing: border-box;
-	border: 1px solid #ccc;
-	border-radius: 2px;
+input,
+button,
+select,
+textarea {
+  font-family: inherit;
+  font-size: inherit;
+  -webkit-padding: 0.4em 0;
+  padding: 0.4em;
+  margin: 0 0 0.5em 0;
+  box-sizing: border-box;
+  border: 1px solid #ccc;
+  border-radius: 2px;
 }
 
 input:disabled {
-	color: #ccc;
+  color: #ccc;
 }
 
 button {
-	color: #333;
-	background-color: #f4f4f4;
-	outline: none;
+  color: #333;
+  background-color: #f4f4f4;
+  outline: none;
 }
 
 button:disabled {
-	color: #999;
+  color: #999;
 }
 
 button:not(:disabled):active {
-	background-color: #ddd;
+  background-color: #ddd;
 }
 
 button:focus {
-	border-color: #666;
+  border-color: #666;
 }

+ 10 - 13
tooling/cli.rs/templates/plugin/with-api/examples/svelte-app/public/index.html

@@ -1,20 +1,17 @@
 <!DOCTYPE html>
 <html lang="en">
+  <head>
+    <meta charset="utf-8" />
+    <meta name="viewport" content="width=device-width,initial-scale=1" />
 
-<head>
-	<meta charset='utf-8'>
-	<meta name='viewport' content='width=device-width,initial-scale=1'>
+    <title>Svelte app</title>
 
-	<title>Svelte app</title>
+    <link rel="icon" type="image/png" href="favicon.png" />
+    <link rel="stylesheet" href="global.css" />
+    <link rel="stylesheet" href="build/bundle.css" />
 
-	<link rel='icon' type='image/png' href='favicon.png'>
-	<link rel='stylesheet' href='global.css'>
-	<link rel='stylesheet' href='build/bundle.css'>
-
-	<script defer src='build/bundle.js'></script>
-</head>
-
-<body>
-</body>
+    <script defer src="build/bundle.js"></script>
+  </head>
 
+  <body></body>
 </html>

+ 74 - 70
tooling/cli.rs/templates/plugin/with-api/examples/svelte-app/rollup.config.js

@@ -1,83 +1,87 @@
-import svelte from 'rollup-plugin-svelte';
-import commonjs from '@rollup/plugin-commonjs';
-import resolve from '@rollup/plugin-node-resolve';
-import livereload from 'rollup-plugin-livereload';
-import { terser } from 'rollup-plugin-terser';
-import sveltePreprocess from 'svelte-preprocess';
-import typescript from '@rollup/plugin-typescript';
-import css from 'rollup-plugin-css-only';
+import svelte from 'rollup-plugin-svelte'
+import commonjs from '@rollup/plugin-commonjs'
+import resolve from '@rollup/plugin-node-resolve'
+import livereload from 'rollup-plugin-livereload'
+import { terser } from 'rollup-plugin-terser'
+import sveltePreprocess from 'svelte-preprocess'
+import typescript from '@rollup/plugin-typescript'
+import css from 'rollup-plugin-css-only'
 
-const production = !process.env.ROLLUP_WATCH;
+const production = !process.env.ROLLUP_WATCH
 
 function serve() {
-	let server;
+  let server
 
-	function toExit() {
-		if (server) server.kill(0);
-	}
+  function toExit() {
+    if (server) server.kill(0)
+  }
 
-	return {
-		writeBundle() {
-			if (server) return;
-			server = require('child_process').spawn('npm', ['run', 'start', '--', '--dev'], {
-				stdio: ['ignore', 'inherit', 'inherit'],
-				shell: true
-			});
+  return {
+    writeBundle() {
+      if (server) return
+      server = require('child_process').spawn(
+        'npm',
+        ['run', 'start', '--', '--dev'],
+        {
+          stdio: ['ignore', 'inherit', 'inherit'],
+          shell: true
+        }
+      )
 
-			process.on('SIGTERM', toExit);
-			process.on('exit', toExit);
-		}
-	};
+      process.on('SIGTERM', toExit)
+      process.on('exit', toExit)
+    }
+  }
 }
 
 export default {
-	input: 'src/main.ts',
-	output: {
-		sourcemap: true,
-		format: 'iife',
-		name: 'app',
-		file: 'public/build/bundle.js'
-	},
-	plugins: [
-		svelte({
-			preprocess: sveltePreprocess(),
-			compilerOptions: {
-				// enable run-time checks when not in production
-				dev: !production
-			}
-		}),
-		// we'll extract any component CSS out into
-		// a separate file - better for performance
-		css({ output: 'bundle.css' }),
+  input: 'src/main.ts',
+  output: {
+    sourcemap: true,
+    format: 'iife',
+    name: 'app',
+    file: 'public/build/bundle.js'
+  },
+  plugins: [
+    svelte({
+      preprocess: sveltePreprocess(),
+      compilerOptions: {
+        // enable run-time checks when not in production
+        dev: !production
+      }
+    }),
+    // we'll extract any component CSS out into
+    // a separate file - better for performance
+    css({ output: 'bundle.css' }),
 
-		// If you have external dependencies installed from
-		// npm, you'll most likely need these plugins. In
-		// some cases you'll need additional configuration -
-		// consult the documentation for details:
-		// https://github.com/rollup/plugins/tree/master/packages/commonjs
-		resolve({
-			browser: true,
-			dedupe: ['svelte']
-		}),
-		commonjs(),
-		typescript({
-			sourceMap: !production,
-			inlineSources: !production
-		}),
+    // If you have external dependencies installed from
+    // npm, you'll most likely need these plugins. In
+    // some cases you'll need additional configuration -
+    // consult the documentation for details:
+    // https://github.com/rollup/plugins/tree/master/packages/commonjs
+    resolve({
+      browser: true,
+      dedupe: ['svelte']
+    }),
+    commonjs(),
+    typescript({
+      sourceMap: !production,
+      inlineSources: !production
+    }),
 
-		// In dev mode, call `npm run start` once
-		// the bundle has been generated
-		!production && serve(),
+    // In dev mode, call `npm run start` once
+    // the bundle has been generated
+    !production && serve(),
 
-		// Watch the `public` directory and refresh the
-		// browser on changes when not in production
-		!production && livereload('public'),
+    // Watch the `public` directory and refresh the
+    // browser on changes when not in production
+    !production && livereload('public'),
 
-		// If we're building for production (npm run build
-		// instead of npm run dev), minify
-		production && terser()
-	],
-	watch: {
-		clearScreen: false
-	}
-};
+    // If we're building for production (npm run build
+    // instead of npm run dev), minify
+    production && terser()
+  ],
+  watch: {
+    clearScreen: false
+  }
+}

+ 5 - 5
tooling/cli.rs/templates/plugin/with-api/examples/svelte-app/src/main.ts

@@ -1,8 +1,8 @@
-import App from './App.svelte';
+import App from './App.svelte'
 
 const app = new App({
-	target: document.body,
-	props: {}
-});
+  target: document.body,
+  props: {}
+})
 
-export default app;
+export default app

+ 1 - 1
tooling/cli.rs/templates/plugin/with-api/examples/svelte-app/tsconfig.json

@@ -3,4 +3,4 @@
 
   "include": ["src/**/*"],
   "exclude": ["node_modules/*", "__sapper__/*", "public/*"]
-}
+}

+ 1 - 1
tooling/cli.rs/templates/plugin/with-api/webview-dist/index.d.ts

@@ -1 +1 @@
-export declare function execute(): Promise<void>;
+export declare function execute(): Promise<void>

+ 14 - 14
tooling/cli.rs/templates/plugin/with-api/webview-src/rollup.config.js

@@ -3,19 +3,19 @@ import { terser } from 'rollup-plugin-terser'
 import typescript from '@rollup/plugin-typescript'
 
 export default {
-	input: './webview-src/index.ts',
-	output: {
-		dir: './webview-dist',
-		entryFileNames: '[name].js',
-		format: 'es',
-		exports: 'auto'
-	},
-	plugins: [
+  input: './webview-src/index.ts',
+  output: {
+    dir: './webview-dist',
+    entryFileNames: '[name].js',
+    format: 'es',
+    exports: 'auto'
+  },
+  plugins: [
     nodeResolve(),
-		terser(),
-		typescript({
-			tsconfig: './webview-src/tsconfig.json',
-			moduleResolution: 'node'
-		})
-	]
+    terser(),
+    typescript({
+      tsconfig: './webview-src/tsconfig.json',
+      moduleResolution: 'node'
+    })
+  ]
 }

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov