Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

sp-core full_crypto is no_std incompatible #12793

@Slesarew

Description

@Slesarew

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

When building for no_std targets, sp-core dependency fails due to issue with libsecp256k1

$cargo build --target=thumbv7m-none-eabi

<truncated>

error[E0463]: can't find crate for `std`
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/subtle-2.4.1/src/lib.rs:88:1
   |
88 | extern crate std;
   | ^^^^^^^^^^^^^^^^^ can't find crate
   |
   = note: the `thumbv7m-none-eabi` target may not support the standard library
   = help: consider building the standard library from source with `cargo build -Zbuild-std`


See more details and proposed fix paritytech/libsecp256k1#146

Steps to reproduce

  1. Install appropriate targets
  2. $cargo generate --git https://github.com/rust-embedded/cortex-m-quickstart
  3. give test project a name, cd
  4. add to Cargo.toml sp-core = {version = "7.0.0", default-features = false, features = ["full_crypto"]} dependency
  5. $cargo build --target=thumbv7m-none-eabi

Metadata

Metadata

Assignees

No one assigned

    Labels

    J2-unconfirmedIssue might be valid, but it’s not yet known.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions