Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to pull latest rust sns-sdk library #16

Closed
gemcoder21 opened this issue Aug 3, 2023 · 4 comments
Closed

Not able to pull latest rust sns-sdk library #16

gemcoder21 opened this issue Aug 3, 2023 · 4 comments

Comments

@gemcoder21
Copy link

I'm using sns-sdk = "1.2.0" inside my project and getting this error when trying to import sns-sdk

Log:

rust-analyzer failed to load workspace: Failed to load the project at /GitHub/api/Cargo.toml: Failed to read Cargo metadata from Cargo.toml file /GitHub/api/Cargo.toml, Some(Version { major: 1, minor: 71, patch: 0 }): Failed to run `cd "/GitHub/api" && "cargo" "metadata" "--format-version" "1" "--manifest-path" "/GitHub/api/Cargo.toml" "--filter-platform" "aarch64-apple-darwin"`: `cargo metadata` exited with an error:     Updating crates.io index
error: failed to select a version for `curve25519-dalek`.
    ... required by package `solana-program v1.14.18`
    ... which satisfies dependency `solana-program = "=1.14.18"` of package `solana-address-lookup-table-program v1.14.18`
    ... which satisfies dependency `solana-address-lookup-table-program = "=1.14.18"` of package `solana-account-decoder v1.14.18`
    ... which satisfies dependency `solana-account-decoder = "=1.14.18"` of package `solana-client v1.14.18`
    ... which satisfies dependency `solana-client = "^1.14.18"` of package `sns-sdk v1.2.0`
    ... which satisfies dependency `sns-sdk = "^1.2.0"` of package `name_resolver v1.0.0 (/GitHub/api/name_resolver)`
    ... which satisfies path dependency `name_resolver` (locked to 1.0.0) of package `client v1.0.0 (/GitHub/api/client)`
versions that meet the requirements `^3.2.1` are: 3.2.1

all possible versions conflict with previously selected packages.

  previously selected package `curve25519-dalek v3.0.0`
    ... which satisfies dependency `curve25519-dalek = "^3"` of package `ed25519-dalek v1.0.1`
    ... which satisfies dependency `ed25519-dalek = "^1.0.1"` of package `sns-sdk v1.2.0`
    ... which satisfies dependency `sns-sdk = "^1.2.0"` of package `name_resolver v1.0.0 (/GitHub/api/name_resolver)`
    ... which satisfies path dependency `name_resolver` (locked to 1.0.0) of package `client v1.0.0 (/GitHub/api/client)`

failed to select a version for `curve25519-dalek` which could resolve this conflict
@ellttBen
Copy link
Contributor

ellttBen commented Aug 4, 2023

Hi @timdegen, could your provide you Cargo.toml and Cargo.lock (if you have one) as well? This would help us reproduce the issue

@gemcoder21
Copy link
Author

@ellttBen
Copy link
Contributor

ellttBen commented Aug 8, 2023

Hey @timdegen, sorry for the late reply! Basically ethers and the solana library do not play well, and this is related to an outdated upstream dependency for the crate zeroize. You can track the relevant issues here :

In the meantime, we have dealt with it by splitting our libraries into Solana and Ethereum ones, with a common crate for shared functionality. That's not really satisfying but it might take months for this issue to be completely resolved.

@ellttBen ellttBen closed this as completed Aug 8, 2023
@gemcoder21
Copy link
Author

@ellttBen solana-labs/solana#26688 (comment) seems like 2.0 is released, what are the next steps to move forward on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants