-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Description
After reading a little, there seems to be an issue with the dep: flag used in the feature flags of one of the packages. This is the error I get when I try to compile a simple solana program with cargo build-bpf.
error: failed to select a version for `solana-address-lookup-table-interface`.
... required by package `solana-program v2.2.1`
... which satisfies dependency `solana-program = "^2.1"` (locked to 2.2.1) of package ...
versions that meet the requirements `^2.2.2` (locked to 2.2.2) are: 2.2.2
the package `solana-program` depends on `solana-address-lookup-table-interface`, with features: `solana-instruction` but `solana-address-lookup-table-interface` does not have these features.
It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.
failed to select a version for `solana-address-lookup-table-interface` which could resolve this conflict
❯ rustc --version
rustc 1.81.0 (eeb90cda1 2024-09-04)
My Cargo.toml:
[package]
name = "solana-test-program"
version = "0.1.0"
edition = "2021"
[dependencies]
solana-program = "2.1"
solana-nostd-entrypoint = { git = "https://github.com/cavemanloverboy/solana-nostd-entrypoint.git" }
solana-program-error = "2.1"
[lib]
crate-type = ["cdylib", "lib"]
Metadata
Metadata
Assignees
Labels
No labels