Guest User

Untitled

a guest
Jan 16th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.35 KB | None | 0 0
  1. 247.7 error[E0412]: cannot find type `SystemTrayConfig` in module `crate::helpers::config`
  2. 247.7 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/interface/rust.rs:1030:54
  3. 247.7 |
  4. 247.7 1030 | system_tray_config: Option<crate::helpers::config::SystemTrayConfig>,
  5. 247.7 | ^^^^^^^^^^^^^^^^ not found in `crate::helpers::config`
  6. 247.7
  7. 247.8 error[E0308]: mismatched types
  8. 247.8 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/helpers/web_dev_server.rs:183:47
  9. 247.8 |
  10. 247.8 183 | f = tauri_utils::html::serialize_node(&document);
  11. 247.8 | --------------------------------- ^^^^^^^^^ expected `tauri_utils::html::NodeRef`, found `kuchiki::NodeRef`
  12. 247.8 | |
  13. 247.8 | arguments to this function are incorrect
  14. 247.8 |
  15. 247.8 = note: `kuchiki::NodeRef` and `tauri_utils::html::NodeRef` have similar names, but are actually distinct types
  16. 247.8 note: `kuchiki::NodeRef` is defined in crate `kuchiki`
  17. 247.8 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kuchiki-0.8.1/src/tree.rs:96:1
  18. 247.8 |
  19. 247.8 96 | pub struct NodeRef(pub Rc<Node>);
  20. 247.8 | ^^^^^^^^^^^^^^^^^^
  21. 247.8 note: `tauri_utils::html::NodeRef` is defined in crate `kuchikiki`
  22. 247.8 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kuchikiki-0.8.2/src/tree.rs:96:1
  23. 247.8 |
  24. 247.8 96 | pub struct NodeRef(pub Rc<Node>);
  25. 247.8 | ^^^^^^^^^^^^^^^^^^
  26. 247.8 note: function defined here
  27. 247.8 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-utils-2.0.0-alpha.12/src/html.rs:104:8
  28. 247.8 |
  29. 247.8 104 | pub fn serialize_node(node: &NodeRef) -> Vec<u8> {
  30. 247.8 | ^^^^^^^^^^^^^^
  31. 247.8
  32. 247.9 error[E0609]: no field `system_tray` on type `tauri_utils::config::TauriConfig`
  33. 247.9 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/build.rs:145:24
  34. 247.9 |
  35. 247.9 145 | if config_.tauri.system_tray.is_some() {
  36. 247.9 | ^^^^^^^^^^^ unknown field
  37. 247.9 |
  38. 247.9 = note: available fields are: `pattern`, `windows`, `bundle`, `security`, `tray_icon`, `macos_private_api`
  39. 247.9
  40. 247.9 error[E0061]: this function takes 2 arguments but 1 argument was supplied
  41. 247.9 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/helpers/app_paths.rs:71:23
  42. 247.9 |
  43. 247.9 71 | lookup(&cwd, |path| folder_has_configuration_file(path) || is_configuration_file(path))
  44. 247.9 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---- an argument of type `tauri_utils::platform::Target` is missing
  45. 247.9 |
  46. 247.9 note: function defined here
  47. 247.9 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-utils-2.0.0-alpha.12/src/config/parse.rs:140:8
  48. 247.9 |
  49. 247.9 140 | pub fn folder_has_configuration_file(target: Target, folder: &Path) -> bool {
  50. 247.9 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  51. 247.9 help: provide the argument
  52. 247.9 |
  53. 247.9 71 | lookup(&cwd, |path| folder_has_configuration_file(/* tauri_utils::platform::Target */, path) || is_configuration_file(path))
  54. 247.9 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  55. 247.9
  56. 247.9 error[E0061]: this function takes 2 arguments but 1 argument was supplied
  57. 247.9 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/helpers/app_paths.rs:71:62
  58. 247.9 |
  59. 247.9 71 | lookup(&cwd, |path| folder_has_configuration_file(path) || is_configuration_file(path))
  60. 247.9 | ^^^^^^^^^^^^^^^^^^^^^ ---- an argument of type `tauri_utils::platform::Target` is missing
  61. 247.9 |
  62. 247.9 note: function defined here
  63. 247.9 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-utils-2.0.0-alpha.12/src/config/parse.rs:151:8
  64. 247.9 |
  65. 247.9 151 | pub fn is_configuration_file(target: Target, path: &Path) -> bool {
  66. 247.9 | ^^^^^^^^^^^^^^^^^^^^^
  67. 247.9 help: provide the argument
  68. 247.9 |
  69. 247.9 71 | lookup(&cwd, |path| folder_has_configuration_file(path) || is_configuration_file(/* tauri_utils::platform::Target */, path))
  70. 247.9 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  71. 247.9
  72. 247.9 error[E0063]: missing fields `compression`, `custom_language_files` and `template` in initializer of `NsisSettings`
  73. 247.9 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/helpers/config.rs:101:3
  74. 247.9 |
  75. 247.9 101 | tauri_bundler::NsisSettings {
  76. 247.9 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `compression`, `custom_language_files` and `template`
  77. 247.9
  78. 247.9 error[E0061]: this function takes 2 arguments but 1 argument was supplied
  79. 247.9 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/helpers/config.rs:125:5
  80. 247.9 |
  81. 247.9 125 | tauri_utils::config::parse::parse_value(tauri_dir.join("tauri.conf.json"))?;
  82. 247.9 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------------------- an argument of type `tauri_utils::platform::Target` is missing
  83. 247.9 |
  84. 247.9 note: function defined here
  85. 247.9 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-utils-2.0.0-alpha.12/src/config/parse.rs:242:8
  86. 247.9 |
  87. 247.9 242 | pub fn parse_value(
  88. 247.9 | ^^^^^^^^^^^
  89. 247.9 help: provide the argument
  90. 247.9 |
  91. 247.9 125 | tauri_utils::config::parse::parse_value(/* tauri_utils::platform::Target */, tauri_dir.join("tauri.conf.json"))?;
  92. 247.9 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  93. 247.9
  94. 247.9 error[E0061]: this function takes 2 arguments but 1 argument was supplied
  95. 247.9 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/helpers/config.rs:130:5
  96. 247.9 |
  97. 247.9 130 | tauri_utils::config::parse::read_platform(tauri_dir)?
  98. 247.9 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------- an argument of type `tauri_utils::platform::Target` is missing
  99. 247.9 |
  100. 247.9 note: function defined here
  101. 247.9 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-utils-2.0.0-alpha.12/src/config/parse.rs:189:8
  102. 247.9 |
  103. 247.9 189 | pub fn read_platform(
  104. 247.9 | ^^^^^^^^^^^^^
  105. 247.9 help: provide the argument
  106. 247.9 |
  107. 247.9 130 | tauri_utils::config::parse::read_platform(/* tauri_utils::platform::Target */, tauri_dir)?
  108. 247.9 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  109. 247.9
  110. 248.1 error[E0061]: this function takes 2 arguments but 1 argument was supplied
  111. 248.1 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/interface/rust.rs:504:16
  112. 248.1 |
  113. 248.1 504 | if is_configuration_file(&event_path) {
  114. 248.1 | ^^^^^^^^^^^^^^^^^^^^^ ----------- an argument of type `tauri_utils::platform::Target` is missing
  115. 248.1 |
  116. 248.1 note: function defined here
  117. 248.1 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-utils-2.0.0-alpha.12/src/config/parse.rs:151:8
  118. 248.1 |
  119. 248.1 151 | pub fn is_configuration_file(target: Target, path: &Path) -> bool {
  120. 248.1 | ^^^^^^^^^^^^^^^^^^^^^
  121. 248.1 help: provide the argument
  122. 248.1 |
  123. 248.1 504 | if is_configuration_file(/* tauri_utils::platform::Target */, &event_path) {
  124. 248.1 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  125. 248.1
  126. 248.1 error[E0609]: no field `system_tray` on type `tauri_utils::config::TauriConfig`
  127. 248.1 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/interface/rust.rs:695:20
  128. 248.1 |
  129. 248.1 695 | config.tauri.system_tray.clone(),
  130. 248.1 | ^^^^^^^^^^^ unknown field
  131. 248.1 |
  132. 248.1 = note: available fields are: `pattern`, `windows`, `bundle`, `security`, `tray_icon`, `macos_private_api`
  133. 248.1
  134. 248.1 error[E0277]: the trait bound `BundleResources: std::default::Default` is not satisfied
  135. 248.1 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/interface/rust.rs:1047:40
  136. 248.1 |
  137. 248.1 1047 | let mut resources = config.resources.unwrap_or_default();
  138. 248.1 | ^^^^^^^^^^^^^^^^^ the trait `std::default::Default` is not implemented for `BundleResources`
  139. 248.1 |
  140. 248.1 note: required by a bound in `std::option::Option::<T>::unwrap_or_default`
  141. 248.1 --> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/option.rs:1001:5
  142. 248.1
  143. 248.2 error[E0599]: no method named `is_empty` found for enum `BundleResources` in the current scope
  144. 248.2 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/interface/rust.rs:1102:29
  145. 248.2 |
  146. 248.2 1102 | resources: if resources.is_empty() {
  147. 248.2 | ^^^^^^^^ method not found in `BundleResources`
  148. 248.2
  149. 248.2 error[E0308]: mismatched types
  150. 248.2 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/interface/rust.rs:1105:12
  151. 248.2 |
  152. 248.2 1105 | Some(resources)
  153. 248.2 | ---- ^^^^^^^^^ expected `Vec<String>`, found `BundleResources`
  154. 248.2 | |
  155. 248.2 | arguments to this enum variant are incorrect
  156. 248.2 |
  157. 248.2 = note: expected struct `Vec<std::string::String>`
  158. 248.2 found enum `BundleResources`
  159. 248.2 help: the type constructed contains `BundleResources` due to the type of the argument passed
  160. 248.2 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/interface/rust.rs:1105:7
  161. 248.2 |
  162. 248.2 1105 | Some(resources)
  163. 248.2 | ^^^^^---------^
  164. 248.2 | |
  165. 248.2 | this argument influences the type of `Some`
  166. 248.2 note: tuple variant defined here
  167. 248.2 --> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/option.rs:577:5
  168. 248.2
  169. 248.2 error[E0063]: missing field `desktop_template` in initializer of `DebianSettings`
  170. 248.2 --> /home/vscode/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-2.0.0-alpha.9/src/interface/rust.rs:1118:10
  171. 248.2 |
  172. 248.2 1118 | deb: DebianSettings {
  173. 248.2 | ^^^^^^^^^^^^^^ missing `desktop_template`
  174. 248.2
  175. 248.3 Some errors have detailed explanations: E0061, E0063, E0277, E0308, E0412, E0599, E0609.
  176. 248.3 For more information about an error, try `rustc --explain E0061`.
  177. 248.3 error: could not compile `tauri-cli` (lib) due to 14 previous errors
  178. 248.3 warning: build failed, waiting for other jobs to finish...
  179. 259.8 error: failed to compile `tauri-cli v2.0.0-alpha.9`, intermediate artifacts can be found at `/tmp/cargo-installBveZ88`.
  180. 259.8 To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
  181. ------
  182. Dockerfile:189
  183. --------------------
  184. 188 | # Update Rust and install required Android targets
  185. 189 | >>> RUN rustup update \
  186. 190 | >>> # Android targets
  187. 191 | >>> && rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android \
  188. 192 | >>> # Add WASM support
  189. 193 | >>> && rustup target add wasm32-unknown-unknown \
  190. 194 | >>> # Install Trunk
  191. 195 | >>> && cargo install trunk --git https://github.com/amrbashir/trunk \
  192. 196 | >>> # Install Tauri CLI
  193. 197 | >>> && cargo install tauri-cli@${TAURI_CLI_VERSION}
  194. 198 |
  195. --------------------
  196. ERROR: failed to solve: process "/bin/sh -c rustup update && rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android && rustup target add wasm32-unknown-unknown && cargo install trunk --git https://github.com/amrbashir/trunk && cargo install tauri-cli@${TAURI_CLI_VERSION}" did not complete successfully: exit code: 101
  197.  
Advertisement
Add Comment
Please, Sign In to add comment