I am trying to implement futures on the Tock OS embedded operating system. I'm trying to using Tokio in a #[no_std]
environment.
My Cargo.toml
file looks like this:
[package]
name = "nrf52dk"
version = "0.1.0"
authors = ["Tock Project Developers <tock-dev@googlegroups.com>"]
build = "build.rs"
[profile.dev]
panic = "abort"
lto = true
opt-level = "z"
debug = true
[profile.release]
panic = "abort"
lto = true
opt-level = "z"
debug = true
[dependencies]
cortexm4 = { path = "../../arch/cortex-m4" }
capsules = { path = "../../capsules" }
kernel = { path = "../../kernel" }
nrf52 = { path = "../../chips/nrf52" }
nrf5x = { path = "../../chips/nrf5x" }
futures = {version = "0.2.0", default-features = false }
This compiles with no errors but when I add tokio-reactor = "0.1.1"
, I get the error: error[E0463]: can't find crate for std
. I understand this is because Tokio imports some stuff from the std library.
Is it possible to get around this problem?