rpcpool / yellowstone-grpc

solana geyser grpc service
GNU Affero General Public License v3.0
308 stars 111 forks source link

yellowstone-grpc-proto 2.0.0 dependency resolution fails #451

Closed thiras closed 2 weeks ago

thiras commented 2 weeks ago
[package]
name = "test-rs"
version = "0.1.0"
edition = "2021"

[dependencies]
yellowstone-grpc-proto = "2.0.0"

cargo build throw this error;

Updating crates.io index
error: failed to select a version for `zeroize`.
    ... required by package `ed25519-dalek v1.0.1`
    ... which satisfies dependency `ed25519-dalek = "=1.0.1"` of package `solana-sdk v2.0.10`
    ... which satisfies dependency `solana-sdk = "=2.0.10"` of package `solana-account-decoder v2.0.10`
    ... which satisfies dependency `solana-account-decoder = "~2.0.10"` of package `yellowstone-grpc-proto v2.0.0`
    ... which satisfies dependency `yellowstone-grpc-proto = "^2.0.0"` of package `fortunate-rs v0.1.0 (/home/thiras/dev/test/test-rs)`
versions that meet the requirements `^1` (locked to 1.8.1) are: 1.8.1

all possible versions conflict with previously selected packages.

  previously selected package `zeroize v1.0.0`
    ... which satisfies dependency `zeroize = ">=1, <1.4"` of package `curve25519-dalek v3.2.1`
    ... which satisfies dependency `curve25519-dalek = "^3.2.1"` of package `solana-program v2.0.10`
    ... which satisfies dependency `solana-program = "=2.0.10"` of package `solana-sdk v2.0.10`
    ... which satisfies dependency `solana-sdk = "=2.0.10"` of package `solana-account-decoder v2.0.10`
    ... which satisfies dependency `solana-account-decoder = "~2.0.10"` of package `yellowstone-grpc-proto v2.0.0`
    ... which satisfies dependency `yellowstone-grpc-proto = "^2.0.0"` of package `fortunate-rs v0.1.0 (/home/thiras/dev/test/test-rs)`

failed to select a version for `zeroize` which could resolve this conflict
thiras commented 2 weeks ago

It worked with default-features = false

[dependencies]
yellowstone-grpc-proto = { version = "2.0.0", default-features = false }
fanatid commented 2 weeks ago

you need to add a patch for curve25519-dalek https://github.com/rpcpool/yellowstone-grpc/blob/17faff5ac068c2f212c471acf67a8dcc1d7caff5/Cargo.toml#L75-L78