Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

cargo install failed due to toml_edit version #1077

Closed
sglk123 opened this issue Sep 24, 2023 · 3 comments
Closed

cargo install failed due to toml_edit version #1077

sglk123 opened this issue Sep 24, 2023 · 3 comments

Comments

@sglk123
Copy link

sglk123 commented Sep 24, 2023

❓ Questions and Help

Please note that this issue tracker is not a help form and this issue will be closed.

Please contact the development team on Discord

root@vultr:/studyspace/move/move# cargo install --path language/tools/move-cli
Installing move-cli v0.1.0 (/studyspace/move/move/language/tools/move-cli)
Updating crates.io index
error: failed to compile move-cli v0.1.0 (/studyspace/move/move/language/tools/move-cli), intermediate artifacts can be found at /studyspace/move/move/target

Caused by:
package toml_edit v0.19.15 cannot be built because it requires rustc 1.66.0 or newer, while the currently active rustc version is 1.65.0
Either upgrade to rustc 1.66.0 or newer, or use
cargo update -p toml_edit@0.19.15 --precise ver
where ver is the latest version of toml_edit supporting rustc 1.65.0

how to solve this issue ?

@wrwg
Copy link
Member

wrwg commented Sep 24, 2023

Please see #1076 for a solution.

@wrwg wrwg closed this as completed Sep 24, 2023
@sglk123
Copy link
Author

sglk123 commented Sep 24, 2023

@wrwg hi, i have add cargo.lock for toml_edit v0.14.3 in move-cli project, but when i cargo install still got this issue, do u know how to fix it

@wrwg
Copy link
Member

wrwg commented Sep 25, 2023

Do no add anything, just pass the option --locked to your cargo commands.

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

No branches or pull requests

2 participants