Skip to content

rust-src component not found. #70

@ntduan

Description

@ntduan

When I execute cargo +nightly Contract build, I got an error.

 `rust-src` component not found. Run `rustup component add rust-src`.

But I think I have rust-src installed, and the rustup component list | grep rust-src also shows that I have rust-src installed.

I tried to specify rust-src manually through export XARGO_RUST_SRC=/home/nzzt/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library, and I succeeded in the next step, but unfortunately another error occurred.

I checked the directory on my computer and found that it didn't match the actual directory.

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions