Skip to content

Commit

Permalink
Workaround build error in docs
Browse files Browse the repository at this point in the history
For some reason `--all-features` causes `rand v0.5.6` to be built without `std` against a `rand-core` with `std`, which fails because of rust-random/rand#738

Just force `rand v0.5.6` to be built with `std` during docs build.
  • Loading branch information
Nemo157 authored Feb 21, 2019
1 parent 4e971f5 commit 1734eed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions embrio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ embrio-core = { path = "../embrio-core" }
embrio-executor = { path = "../embrio-executor", optional = true }
embrio-nrf51 = { path = "../embrio-nrf51", optional = true }
embrio-util = { path = "../embrio-util" }
# Explicit dependency to force on feature needed by `cortex-m-rt-macros`
rand = { version = "0.5.6", default-features = false }

[features]
default = []
executor = ["embrio-executor"]
nrf51 = ["embrio-nrf51"]
std = ["rand/std"]

0 comments on commit 1734eed

Please sign in to comment.