Skip to content

[Bug] Cargo configuration and build errors across RustChain crates #8095

Description

@antonpiat

Component

Other

What happened?

Description

Cargo project loading fails due to multiple Cargo configuration and dependency issues across different crates.

The following errors were found:

  1. cross-chain-airdrop/Cargo.lock

    • Cargo fails with:
      package `thiserror` is specified twice in the lockfile
      
  2. miners/rust/Cargo.toml

    • reqwest version 0.13 is configured with the unsupported feature:
      rustls-tls
      
    • reqwest 0.13 uses:
      rustls
      
  3. rips/Cargo.toml

    • Cargo cannot find:
      benches/entropy_bench.rs
      
      or:
      benches/entropy_bench/main.rs
      
    • Cargo also cannot find binary:
      rustchain-miner
      
  4. rust-tools

    • Workspace references:
      sdk/Cargo.toml
      
      but the file does not exist.
  5. rust-tools/examples/rustchain-sdk/Cargo.toml

    • bip39 and ed25519-dalek are declared under [features] instead of [dependencies].
  6. rust-tools/examples/rustchain-sdk

    • Missing crate entry file:
      src/lib.rs
      
      or:
      src/main.rs
      
  7. rustchain-miner

    • reqwest 0.13 uses the outdated feature:
      rustls-tls
      
      instead of:
      rustls
      

Expected behavior

I mentioned it in "what happened"

Steps to reproduce

  1. Clone the RustChain repository.
  2. Open the project in RustRover.
  3. Allow RustRover to load the Cargo workspace.
  4. Run Cargo metadata/build:

Version / Commit

No response

Operating System

No response

Relevant logs

versions that meet the requirements `^0.13` are: 0.13.4, 0.13.3, 0.13.2, 0.13.1, 0.13.0
package `rustchain-miner` depends on `reqwest` with feature `rustls-tls` but `reqwest` does not have that feature.
help: available features: __native-tls, __native-tls-alpn, __rustls, __rustls-aws-lc-rs, __tls, blocking, brotli, charset, cookies, default, default-tls, deflate, form, gzip, h2, hickory-dns, http2, http3, json, multipart, native-tls, native-tls-no-alpn, native-tls-vendored, native-tls-vendored-no-alpn, query, rustls, rustls-native-certs, rustls-no-provider, socks, stream, system-proxy, webpki-roots, zstd
failed to select a version for `reqwest` which could resolve this conflict

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions