rhai: no_std error

I keep getting can’t find crate for std even with “no_std” feature

[dependencies.rhai]
git = "https://github.com/jonathandturner/rhai"
features = ["no_std"]
default-features = false

Here is some of the output

Blocking waiting for file lock on build directory
   Compiling core-error v0.0.0
   Compiling stm32f4 v0.11.0
error[E0463]: can't find crate for `std`
  |                                                                                                                                  ing waiting for file lock on package cache
  = note: the `thumbv7em-none-eabihf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: could not compile `core-error`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 47

Most upvoted comments

Getting good progress in the rust programming!

It works fine now Thank you a lot!

Can you pull from my latest and see if it works now.

I’ve taken care not to pull in std, especially from core-error and libm.

Games will be realy simple just like commodore games lines pixel arts etc. I actually don’t know hardware is capable of doing theese. Im just prototyping it

It worked 😄

core-error = { version = "0.0.0", features = ["alloc"], default-features = false}

using with default-features works

Looks like feature="std" is the culprit.

Try:

core-error = { version = "0.0.0", features = ["alloc"] }