Im trying to use marinade finance program to CPI into for my project, however while trying to import it in my cargo.toml i get this error
My cargo.toml dependencies
[dependencies]
anchor-lang = "0.24.2"
anchor-spl = "0.24.2"
marinade-finance = { git = "https://github.com/marinade-finance/liquid-staking-program" }
The error
Failed to obtain package metadata: `cargo metadata` exited with an error: warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/swaystar/programming/solana/altruism/programs/altruism/Cargo.toml
workspace: /home/swaystar/programming/solana/altruism/Cargo.toml
Updating git repository `https://github.com/marinade-finance/liquid-staking-program`
Updating crates.io index
error: failed to select a version for the requirement `anchor-lang = "^0.14.0"`
candidate versions found which didn't match: 0.25.0, 0.24.2
location searched: crates.io index
required by package `marinade-finance v0.1.0 (https://github.com/marinade-finance/liquid-staking-program#a309057f)`
... which satisfies git dependency `marinade-finance` of package `altruism v0.1.0 (/home/swaystar/programming/solana/altruism/programs/altruism)`
anchor --version
in terminal?anchor-lang = "^0.14.0"
in its dependencies. or u might end up having to use anchor 14 too..