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

Build fails on both v0 and v1 #35

Open
ricardojmendez opened this issue Jan 19, 2024 · 7 comments
Open

Build fails on both v0 and v1 #35

ricardojmendez opened this issue Jan 19, 2024 · 7 comments

Comments

@ricardojmendez
Copy link

ricardojmendez commented Jan 19, 2024

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
Copy link

Same problem

@anoushk1234
Copy link
Member

This look like a in-compatibility with rust version

@anoushk1234
Copy link
Member

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
Copy link
Member

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

@ricardojmendez
Copy link
Author

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

@anoushk1234
Copy link
Member

@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
Copy link

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

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

4 participants