#Failure to parse manifest at ~/cargo.toml

19 messages · Page 1 of 1 (latest)

dreamy prawn
#

Im getting this error with cargo check as well as cargo run and even after adding edition2024 to cargo.toml as the docs say, it still returns the same error

sturdy thicket
#

do you need to update cargo

dreamy prawn
#

i already reinstalled cargo

#

and tried

sturdy thicket
#

1.82?

#

or just dont use edition 2024

#

because the 2024 edition is unstable

dreamy prawn
#

yeah it is cargo 1.82.0

floral sphinx
#

try setting edition = "2021" in your Cargo.toml

sturdy thicket
#

yeah

dreamy prawn
#

nope

#

same error message

floral sphinx
#

what does your Cargo.toml look like?

dreamy prawn
#

oh wait

#

The package requires the Cargo feature called edition2024, but that feature is not stabilized in this version of Cargo (1.82.0).

#

edition = "2021"
[package]
name = "guessing_game"
version = "0.1.0"
edition = "2024"

[dependencies]
rand = "0.8.5"

sturdy thicket
#

yeah but replace the edition line with it

#
[package]
name = "guessing_game"
version = "0.1.0"
edition = "2021"

[dependencies]
rand = "0.8.5"
dreamy prawn
#

omg im so stupid