jarvis
jarvis copied to clipboard
Ошибка при сборке
error[E0277]: the trait bound BundleResources: Default
is not satisfied
--> C:\Users\CyberSec17.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.3.0\src\lib.rs:330:61
|
330 | let mut resources = config.tauri.bundle.resources.clone().unwrap_or_default();
| ^^^^^^^^^^^^^^^^^ the trait Default
is not implemented for BundleResources
|
note: required by a bound in std::option::Option::<T>::unwrap_or_default
--> C:\Users\CyberSec17.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\option.rs:1003:12
|
1001 | pub fn unwrap_or_default(self) -> T
| ----------------- required by a bound in this associated function
1002 | where
1003 | T: Default,
| ^^^^^^^ required by this bound in Option::<T>::unwrap_or_default
error[E0599]: no method named as_slice
found for enum BundleResources
in the current scope
--> C:\Users\CyberSec17.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.3.0\src\lib.rs:338:47
|
338 | copy_resources(ResourcePaths::new(resources.as_slice(), true), target_dir)?;
| ^^^^^^^^ method not found in BundleResources
|
note: the method as_slice
exists on the type Vec<std::string::String>
--> C:\Users\CyberSec17.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\alloc\src\vec\mod.rs:1193:5
|
1193 | pub fn as_slice(&self) -> &[T] {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Some errors have detailed explanations: E0277, E0599.
For more information about an error, try rustc --explain E0277
.
error: could not compile tauri-build
(lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Инструкция:
- Открываешь jarvis-master/gui
- Возвращаешься на главную ветку jarvis-master
- npm install --save package.json, следующей командой npm install --save package-lock.json
- Устанавливаешь npm install -g tauri
- Устанавливаешь npm install -g @roxi/routify
- toutify добавляешь в PATH. Он находится по пути C:\Users\Твой_Пользователь\AppData\Roaming\npm\node_modules@roxi\routify
- Переходишь в ветку app
- Устанавливаешь cargo install --force cargo-make
- cargo make release
- ./target/release/jarvis-app И не забудь скачать себе Picovoice, vosk, node и установить rust Приятного пользования