These are chat archives for rust-lang/rust

25th
Feb 2018
Yonggang Luo
@lygstate
Feb 25 2018 16:59
What's the error for no_std?
std::error::Error
Denis Lisov
@tanriol
Feb 25 2018 17:34
@lygstate There are various error types in core, but no Error trait. Do you really need it?
Yonggang Luo
@lygstate
Feb 25 2018 17:48
@tanriol I am not sure sure, I am a beginner of Rust, Trying to port wasmi from std to no_std, So I faced that problem. At the current time, I directly remove the things like this
```
@tanriol I am not sure sure, I am a beginner of Rust, Trying to port wasmi from std to no_std, So I faced that problem. At the current time, I directly remove the things like this
-impl error::Error for Error {
-    fn description(&self) -> &str {
-        &self.0
-    }
-}
Yonggang Luo
@lygstate
Feb 25 2018 17:54
I am trying to port/implement a WebAssembly Interpter( Not Jit) that can running on MCU(Micro-Controller) with restricted resources(Memory/Flash) Memory(64KB-640KB) Flash(128KB-2048KB) Unit are bytes. So I need writing all the code in no_std without need access any IO things.
Denis Lisov
@tanriol
Feb 25 2018 18:09
Yeah, I'd remove them too.