hyperledger-solang / solang-aqd

Apache License 2.0
2 stars 1 forks source link

Remove Crate Patches from `Cargo.toml` Upon Solana Crate Updates #5

Open tareknaser opened 1 year ago

tareknaser commented 1 year ago

Presently, there are dependency conflicts between solana crates and contract-extrinsics, which are reflected in this issue (#26688) within the Solana repository. A simplified Cargo.toml configuration for solang-aqd includes these dependencies:

[dependencies] 
contract-extrinsics = {git = "https://github.com/paritytech/cargo-contract"} 
solana-client = "1.17.1"

However, this setup leads to an error due to conflicting dependencies, specifically related to the zeroize crate, which causes version conflicts.

As a temporary fix, solang-aqd includes a patch in its Cargo.toml to address these conflicts:

[patch.crates-io.aes-gcm-siv]
git = "https://github.com/RustCrypto/AEADs"
rev = "e1e35e0c4f4943da0a99ceb8477c421dcfae2c33"

Solana plans to solve this issue soon, as outlined in this related discussion. Once Solana resolves this issue, the patches in solang-aqd's Cargo.toml should be removed.