Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidebar does not compile #1554

Open
1 task
ernestp opened this issue Nov 23, 2024 · 1 comment
Open
1 task

Sidebar does not compile #1554

ernestp opened this issue Nov 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ernestp
Copy link

ernestp commented Nov 23, 2024

Before submitting your bug report

  • I'm not able to find an open issue that reports the same bug

Environment

- OS: MacOS Sequoia 15.1.1
- Sidecar commit: 398c4d33270318b16a9f3df1653a8bb51a66513b
- IDE commit: -

Description

Unable to compile sidecar due to

error[E0282]: type annotations needed for `Box<_>`
  --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.30/src/format_description/parse/mod.rs:83:9

Workaround:
Run cargo update

However after that another error pops up:

   Compiling logging v0.1.0 (/Users/user/Documents/GitHub/sidecar/logging)
error[E0432]: unresolved import `zstd_sys::ZSTD_cParameter::ZSTD_c_experimentalParam6`
   --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zstd-safe-6.0.6/src/lib.rs:609:13
    |
609 |             ZSTD_c_experimentalParam6 as ZSTD_c_targetCBlockSize,
    |             -------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |             |
    |             no `ZSTD_c_experimentalParam6` in `ZSTD_cParameter`
    |             help: a similar name exists in the module: `ZSTD_c_experimentalParam1`

Reproduction

  1. Clone repository
  2. Initialize LFS
  3. Install rust with Homebrew
  4. Run cargo build --bin webserver

Log output

Compiling http-body v1.0.0
error[E0282]: type annotations needed for `Box<_>`
  --> /Users/ernest/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.30/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
   = note: this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` by calling `cargo update`
@ernestp ernestp added the bug Something isn't working label Nov 23, 2024
@ernestp
Copy link
Author

ernestp commented Nov 23, 2024

OK I found workaround

instead of updating all packages need to update only time

cargo update time

then

cargo build --bin webserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant