Skip to content

Unable to build or install using cargo #36

@gmkbenjamin

Description

@gmkbenjamin

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`

........

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions