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

cargo check error #118

Closed
cassc opened this issue Apr 13, 2022 · 1 comment
Closed

cargo check error #118

cassc opened this issue Apr 13, 2022 · 1 comment

Comments

@cassc
Copy link

cassc commented Apr 13, 2022

cargo check produces the following error:

❯ cargo check
   Compiling proc-macro2 v1.0.37
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.91
   Compiling serde_derive v1.0.136
   Compiling version_check v0.9.4
   Compiling serde v1.0.136
    Checking cfg-if v1.0.0
   Compiling libc v0.2.123
error[E0463]: can't find crate for `std`

For more information about this error, try `rustc --explain E0463`.
error: could not compile `serde_derive` due to previous error
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `core`

error: build failed

Tried cargo check --workspace --all-features but still got the error. Any suggestions?

@cassc
Copy link
Author

cassc commented Apr 18, 2022

solved by removing rust-toolchain.toml, not sure why it's causing the problem.

@cassc cassc closed this as completed Apr 18, 2022
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

1 participant