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

[BUG] cargo install -q worker-build Don't work #219

Closed
1 task done
remotejob opened this issue Sep 1, 2022 · 3 comments
Closed
1 task done

[BUG] cargo install -q worker-build Don't work #219

remotejob opened this issue Sep 1, 2022 · 3 comments

Comments

@remotejob
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What version of workers-rs are you using?

0.0.9, 0.0.10, 0.0.11

Describe the bug

Running custom build: cargo install -q worker-build && worker-build --release
error[E0658]: use of unstable library feature 'bool_to_option'
--> /home/juno/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/worker-build-0.0.7/src/install.rs:14:14
|
14 | .then_some(path)
| ^^^^^^^^^
|
= note: see issue #80967 rust-lang/rust#80967 for more information

Steps To Reproduce

rustc 1.63.0
cargo 1.63.0
wrangler 2.0.28

cargo install -q worker-build
error: could not compile worker-build due to previous error

@andogq
Copy link

andogq commented Sep 1, 2022

Hi,

Was there a fix for this at all? I'm getting the same error when running wrangler dev (v2.0.28), miniflare (v2.7.1) and cargo install -q worker-build (tries installing 0.0.7).

Thanks!

@zebp
Copy link
Collaborator

zebp commented Sep 1, 2022

Hi,

Was there a fix for this at all? I'm getting the same error when running wrangler dev (v2.0.28), miniflare (v2.7.1) and cargo install -q worker-build (tries installing 0.0.7).

Thanks!

I'm not sure what @remotejob did to fix this issue as they were already on the latest Rust, but this should compile on any Rust >=1.62. The command rustup update should fix this for you if you are managing your Rust toolchain with rustup otherwise you should see what's the latest version for your package manager of choice.

@andogq
Copy link

andogq commented Sep 2, 2022

rustup update worked perfectly, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants