tinydancer-io / tinydancer

The First Light Client for the Solana Blockchain
https://docs.tinydancer.io
MIT License
130 stars 16 forks source link

Build fails on both v0 and v1 #35

Open ricardojmendez opened 10 months ago

ricardojmendez commented 10 months ago

Hi,

I'm trying to install TInyDancer through cargo install. It all goes well until it reaches spl-token-2022, where the build fails:

124.4    Compiling spl-token-2022 v0.5.0
124.5 error[E0412]: cannot find type `CloseAccountData` in this scope
124.5    --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/spl-token-2022-0.5.0/src/extension/confidential_transfer/instruction.rs:688:18
124.5     |
124.5 688 |     proof_data: &CloseAccountData,
124.5     |                  ^^^^^^^^^^^^^^^^ not found in this scope
124.5
124.5 error[E0412]: cannot find type `WithdrawWithheldTokensData` in this scope
124.5     --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/spl-token-2022-0.5.0/src/extension/confidential_transfer/instruction.rs:1086:18
124.5      |
124.5 497  | pub struct WithdrawWithheldTokensFromMintData {
124.5      | --------------------------------------------- similarly named struct `WithdrawWithheldTokensFromMintData` defined here

(Eliding other errors)

I've tried this with both master and v1. I also tried building in a clean container based off rust:latest, to make sure the environment was clean.

Is this a known issue or is there something I'm missing?

TehnobitSystems commented 9 months ago

Same problem

anoushk1234 commented 8 months ago

This look like a in-compatibility with rust version

anoushk1234 commented 8 months ago

The v1 client is building for me now, we recently updated dependencies on v1 to solana v1.18.7 which uses rust 1.75 and have added a rust-toolchain file so it compiles with that.

In v0 we didn't have a pinned version so you could try using this version https://github.com/tinydancer-io/diet-rpc-validator/blob/master/rust-toolchain.toml cc: @harsh4786

@ricardojmendez

anoushk1234 commented 8 months ago

@ricardojmendez @TehnobitSystems I just published a new release v0.0.2. I can confirm that this builds with the pinned rust version.

ricardojmendez commented 8 months ago

@anoushk1234 v0.0.2 does build, with only a few warnings about unhandled results.

anoushk1234 commented 8 months ago

@anoushk1234 v0.0.2 does build, with only a few warnings about unhandled results.

Yea that's fine, v0 is not meant to be used in production, it's more of a prototype. V1 is still under dev.

skyisboss commented 7 months ago

when i run tinydancer start "/tmp/mytin" get the result Client can't connect to socket