Skip to content

Cargo check gives error for wasm build #2048

@silicology1

Description

@silicology1

Cargo check gives following error, its a old problem that's not been solved.

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `jsonrpsee_helpers`
  --> /home/amiya/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/subxt-rpcs-0.43.0/src/client/rpc_client.rs:35:22
   |
35 |         let client = jsonrpsee_helpers::client(url.as_ref())
   |                      ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `jsonrpsee_helpers`
   |
   = help: if you wanted to use a crate named `jsonrpsee_helpers`, use `cargo add jsonrpsee_helpers` to add it to your `Cargo.toml`

But error disappears with adding .cargo/config.toml

[build]
target = "wasm32-unknown-unknown"

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