move-language / move

Apache License 2.0
2.24k stars 676 forks source link

cargo install failed due to toml_edit version #1077

Closed sglk123 closed 9 months ago

sglk123 commented 9 months ago

❓ 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 commented 9 months ago

Please see #1076 for a solution.

sglk123 commented 9 months ago

@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 commented 9 months ago

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