Describe the bug
The build with tauri fails for an indirect rust dependency.
To Reproduce
Steps to reproduce the behavior:
1 - execute npm run tauri build -- --debug
npm run tauri build -- --debug
> ophiuchi@0.5.0 tauri
> tauri build --debug
Running beforeBuildCommand `npm run build`
> ophiuchi@0.5.0 build
> next build
- info Creating an optimized production build
- info Compiled successfully
- info Linting and checking validity of types
- info Collecting page data
- info Generating static pages (5/5)
- info Finalizing page optimization
Route (app) Size First Load JS
┌ ○ / 8.64 kB 99.2 kB
├ ○ /endpoint-list 136 kB 227 kB
└ ○ /favicon.ico 0 B 0 B
+ First Load JS shared by all 78.6 kB
├ chunks/1-33d54f508cf16c72.js 26 kB
├ chunks/6b6add3f-b7bc95e4e78e3454.js 50.6 kB
├ chunks/main-app-0b5394ef40b6aec5.js 220 B
└ chunks/webpack-773222ee38fc6ca0.js 1.78 kB
Route (pages) Size First Load JS
─ ○ /404 180 B 75.8 kB
+ First Load JS shared by all 75.6 kB
├ chunks/framework-b5f16bf8d1f4a453.js 45.1 kB
├ chunks/main-fd792b4cfadb033a.js 28.6 kB
├ chunks/pages/_app-8ed5c22f8328e915.js 194 B
└ chunks/webpack-773222ee38fc6ca0.js 1.78 kB
○ (Static) automatically rendered as static HTML (uses no initial props)
Compiling serde v1.0.183
Compiling thiserror v1.0.46
Compiling phf v0.8.0
Compiling html5ever v0.25.2
Compiling cssparser v0.27.2
Compiling cssparser-macros v0.6.1
Compiling derive_more v0.99.17
Compiling darling_macro v0.20.3
Compiling time v0.3.25
Compiling darling v0.20.3
Compiling rand v0.8.5
error[E0282]: type annotations needed for `Box<_>`
--> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.25/src/format_description/parse/mod.rs:83:9
|
83 | let items = format_items
| ^^^^^
...
86 | Ok(items.into())
| ---- type must be known at this point
|
help: consider giving `items` an explicit type, where the placeholders `_` are specified
|
83 | let items: Box<_> = format_items
| ++++++++
Compiling brotli-decompressor v2.3.4
Compiling phf_macros v0.10.0
Compiling aho-corasick v1.0.4
For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Error failed to build app: failed to build app
Describe the bug The build with tauri fails for an indirect rust dependency.
To Reproduce Steps to reproduce the behavior: 1 - execute
npm run tauri build -- --debug
Expected behavior Something like this:
Screenshots N/A
Desktop (please complete the following information):
Additional context I found out that this works https://github.com/time-rs/time/issues/681#issuecomment-2128002434
Adding the following (line 24) works
There is probably another dependency that should be updated instead.