neon-mmd / websurfx

:rocket: An open source alternative to searx which provides a modern-looking :sparkles:, lightning-fast :zap:, privacy respecting :disguised_face:, secure :lock: meta search engine
GNU Affero General Public License v3.0
703 stars 90 forks source link

🐛 Error building with Rust 1.80.1 #591

Open diraneyya opened 2 weeks ago

diraneyya commented 2 weeks ago

Description

error[E0282]: type annotations needed for `Box<_>`
  --> /Users/orwa/.asdf/installs/rust/1.80.1/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.29/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 addr2line v0.21.0
   Compiling actix-codec v0.5.1
   Compiling sha1 v0.10.6
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...
(base) 

Screenshots

image

Do you want to work on this issue?

No

Additional information

neofetch output:

OS: macOS 13.4.1 22F82 arm64 
Host: Mac14,9 
Kernel: 22.5.0 
Uptime: 3 days, 13 hours, 4 mins 
Packages: 260 (brew) 
Shell: zsh 5.9 
Resolution: 1512x982 
DE: Aqua 
WM: Quartz Compositor 
WM Theme: Blue (Light) 
Terminal: Apple_Terminal 
Terminal Font: FiraCodeNerdFontCompleteM-Retina 
CPU: Apple M2 Pro 
GPU: Apple M2 Pro 
Memory: 3013MiB / 16384MiB
github-actions[bot] commented 2 weeks ago

To reduce notifications, issues are locked until they are https://github.com/neon-mmd/websurfx/labels/%F0%9F%8F%81%20status%3A%20ready%20for%20dev and to be assigned. You can learn more in our contributing guide https://github.com/neon-mmd/websurfx/blob/rolling/CONTRIBUTING.md

github-actions[bot] commented 1 week ago

The issue has been unlocked and is now ready for dev. If you would like to work on this issue, you can comment to have it assigned to you. You can learn more in our contributing guide https://github.com/neon-mmd/websurfx/blob/rolling/CONTRIBUTING.md

neon-mmd commented 1 week ago

Sorry for the late reply.

Thanks :heart: for taking the time to open this issue. We really appreciate it :+1: as it helps improve our project. :slightly_smiling_face:

I think this issue seems to be affecting the new release of rust like it is being reported by many folks like on rust subreddit like here which we suggest checking it out. 🙂

To solve this issue, we would suggest running the following commands and it should fix the issue 🙂 :

cargo generate-lockfile
cargo build -r --features "<the features you want to enable seperated by commas>"

If this does not solve the issue. We would suggest opening an issue about this here 🙂 . I hope this helps 🙂 .