tinydancer icon indicating copy to clipboard operation
tinydancer copied to clipboard

Build fails on both v0 and v1

Open ricardojmendez opened this issue 2 years ago • 7 comments

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?

ricardojmendez avatar Jan 19 '24 07:01 ricardojmendez

Same problem

TehnobitSystems avatar Mar 01 '24 21:03 TehnobitSystems

This look like a in-compatibility with rust version

anoushk1234 avatar Apr 01 '24 17:04 anoushk1234

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 avatar Apr 01 '24 17:04 anoushk1234

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

anoushk1234 avatar Apr 04 '24 05:04 anoushk1234

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

ricardojmendez avatar Apr 05 '24 03:04 ricardojmendez

@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.

anoushk1234 avatar Apr 05 '24 07:04 anoushk1234

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

skyisboss avatar Apr 06 '24 05:04 skyisboss