I'm trying to build using anchor but there seems to be this error
error: package `constant_time_eq v0.3.0` cannot be built because it requires rustc 1.66.0 or newer, while the currently active rustc version is 1.62.0-dev
This is my current dependencies in cargo.toml file.
[dependencies]
anchor-lang = { version = "0.27.0", features = ["init-if-needed"] }
anchor-spl = { git = "https://github.com/coral-xyz/anchor" }
bytemuck = "1.13.1"
toml_datetime = "=0.6.1"
constant_time_eq = "0.3.0"
winnow = "=0.4.1"
solana-program = "=1.14.17"
solana-cli version is 1.14.20. rustc version 1.70.0 anchor-cli version is 0.27.0
I also have tried to
- downgrade to solana 1.14.17
- fix anchor-spl according to the https://solana.stackexchange.com/a/6535/471 guide