Skip to content

Make the crate no_std-compatible #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mina86
Copy link

@mina86 mina86 commented Jul 24, 2023

Even though the crate doesn’t use std crate, because it doesn’t
declare #![no_std] it cannot be compiled in no_std environments:

error[E0463]: can't find crate for `std`
  = note: the `thumbv6m-none-eabi` target may not support the standard library
  = note: `std` is required by `forward_ref` because it does not declare `#![no_std]`

Adding the annotation makes it possible to use the crate on no_std
targets.

Issue: CosmWasm/cosmwasm#1484

Even though the crate doesn’t use std crate, because it doesn’t
declare `#![no_std]` it cannot be compiled in no_std environments:

    error[E0463]: can't find crate for `std`
      = note: the `thumbv6m-none-eabi` target may not support the standard library
      = note: `std` is required by `forward_ref` because it does not declare `#![no_std]`

Adding the annotation makes it possible to use the crate on no_std
targets.

Issue: CosmWasm/cosmwasm#1484
@mina86
Copy link
Author

mina86 commented Aug 30, 2023

@jtempest, friendly ping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant