Build fails on both v0 and v1
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?
Same problem
This look like a in-compatibility with rust version
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
@ricardojmendez @TehnobitSystems I just published a new release v0.0.2. I can confirm that this builds with the pinned rust version.
@anoushk1234 v0.0.2 does build, with only a few warnings about unhandled results.
@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.
when i run tinydancer start "/tmp/mytin"
get the result Client can't connect to socket