ChorusOne / solido

Lido for Solana is a Lido-DAO governed liquid staking protocol for the Solana blockchain.
https://chorusone.github.io/solido/
GNU General Public License v3.0
101 stars 43 forks source link

Make dependencies compatible with "cargo vendor" #563

Closed ruuda closed 2 years ago

ruuda commented 2 years ago

We need to patch all the dependencies from solana-*, to make sure we don't mix packages from crates.io and our fork. Without this, cargo vendor will complain with an error like this:

$ cargo vendor
error: failed to sync

Caused by:
  found duplicate version of package `solana-metrics v1.7.8` vendored from two sources:

    source 1: registry `crates-io`
    source 2: https://github.com/ChorusOne/solana?branch=program-test-178#af358e1a

I listed all of these under patches until Cargo stopped complaining.

This is needed in particular to make this work with buildRustPackage in Nix, because it relies on cargo vendor.

ruuda commented 2 years ago

Opened #565 for updating Solana.