tinydancer-io / tinydancer

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

Unable to build or install using cargo #36

Open gmkbenjamin opened 7 months ago

gmkbenjamin commented 7 months ago

Cargo install tinydancer

error: failed to compile `tinydancer v0.0.8`, intermediate artifacts can be found at `/tmp/cargo-installGxBshx`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Caused by:
  failed to select a version for `tokio`.
      ... required by package `solana-ledger v1.16.0`
      ... which satisfies dependency `solana-ledger = "^1.15.0"` of package `tinydancer v0.0.8`
  versions that meet the requirements `~1.14.1` are: 1.14.1

  all possible versions conflict with previously selected packages.

    previously selected package `tokio v1.37.0`
      ... which satisfies dependency `tokio = "^1.25.0"` of package `tinydancer v0.0.8`

  failed to select a version for `tokio` which could resolve this conflict

Cargo build master

Compiling solana-storage-proto v1.15.0 (https://github.com/tinydancer-io/diet-rpc-validator?branch=master#e7cf3223)
error: unsupported output in build script of `solana-storage-proto v1.15.0 (https://github.com/tinydancer-io/diet-rpc-validator?branch=master#e7cf3223)`: `cargo::rerun-if-changed=proto/confirmed_block.proto`
Found a `cargo::key=value` build directive which is reserved for future use.
Either change the directive to `cargo:key=value` syntax (note the single `:`) or upgrade your version of Rust.
See https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script for more information about build script outputs.

Cargo build v0

Compiling` solana-storage-proto v1.15.0 (https://github.com/tinydancer-io/diet-rpc-validator?branch=master#e7cf3223)
error: unsupported output in build script of `solana-storage-proto v1.15.0 (https://github.com/tinydancer-io/diet-rpc-validator?branch=master#e7cf3223)`: `cargo::rerun-if-changed=proto/confirmed_block.proto`
Found a `cargo::key=value` build directive which is reserved for future use.
Either change the directive to `cargo:key=value` syntax (note the single `:`) or upgrade your version of Rust.
See https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script for more information about build script outputs.

Cargo build v1

error: failed to load manifest for workspace member `/home/user/ore/tinydancer/tinydancer`

Caused by:
  failed to load manifest for dependency `copy`

Caused by:
  failed to read `/home/user/ore/tinydancer/solana-spv-plugin/onchain_programs/programs/copy/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

cargo install --git https://github.com/tinydancer-io/tinydancer tinydancer

Compiling spl-token-2022 v0.5.0
error[E0412]: cannot find type `CloseAccountData` in this scope
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spl-token-2022-0.5.0/src/extension/confidential_transfer/instruction.rs:688:18
    |
688 |     proof_data: &CloseAccountData,
    |                  ^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type `WithdrawWithheldTokensData` in this scope
    --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spl-token-2022-0.5.0/src/extension/confidential_transfer/instruction.rs:1086:18
     |
497  | pub struct WithdrawWithheldTokensFromMintData {
     | --------------------------------------------- similarly named struct `WithdrawWithheldTokensFromMintData` defined here
...
1086 |     proof_data: &WithdrawWithheldTokensData,
     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `WithdrawWithheldTokensFromMintData`

error[E0412]: cannot find type `WithdrawWithheldTokensData` in this scope
    --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spl-token-2022-0.5.0/src/extension/confidential_transfer/instruction.rs:1151:18
     |
497  | pub struct WithdrawWithheldTokensFromMintData {
     | --------------------------------------------- similarly named struct `WithdrawWithheldTokensFromMintData` defined here
...
1151 |     proof_data: &WithdrawWithheldTokensData,
     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `WithdrawWithheldTokensFromMintData`

........
Curry44424 commented 5 months ago

I see you guys haven't gotten ton these issues lmfao I'm on the same problem I'm going to try and work on it but if not i just need the rpc might just use the regular version

Curry44424 commented 5 months ago

Error E0635: Unknown Feature proc_macro_span_shrink This error indicates that the feature proc_macro_span_shrink might not be available in your current Rust version. Ensure you're using the latest Rust stable version as this feature might only be available in recent versions.