diff options
| -rw-r--r-- | embassy/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy/src/io/error.rs | 4 | ||||
| -rw-r--r-- | embassy/src/lib.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/embassy/Cargo.toml b/embassy/Cargo.toml index 60428f10d..7b8e6cfad 100644 --- a/embassy/Cargo.toml +++ b/embassy/Cargo.toml | |||
| @@ -5,7 +5,7 @@ authors = ["Dario Nieuwenhuis <[email protected]>"] | |||
| 5 | edition = "2018" | 5 | edition = "2018" |
| 6 | 6 | ||
| 7 | [features] | 7 | [features] |
| 8 | std = [] | 8 | std = ["futures/std"] |
| 9 | 9 | ||
| 10 | [dependencies] | 10 | [dependencies] |
| 11 | defmt = "0.1.0" | 11 | defmt = "0.1.0" |
diff --git a/embassy/src/io/error.rs b/embassy/src/io/error.rs index 2f1d4810e..ee3263d55 100644 --- a/embassy/src/io/error.rs +++ b/embassy/src/io/error.rs | |||
| @@ -110,8 +110,8 @@ impl From<io::Error> for Error { | |||
| 110 | } | 110 | } |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | #[cfg(feature = "std")] | 113 | //#[cfg(feature = "std")] |
| 114 | impl std::error::Error for Error {} | 114 | //impl std::error::Error for Error {} |
| 115 | 115 | ||
| 116 | /* | 116 | /* |
| 117 | impl From<smoltcp::Error> for Error { | 117 | impl From<smoltcp::Error> for Error { |
diff --git a/embassy/src/lib.rs b/embassy/src/lib.rs index 92ad77424..3b9aa8145 100644 --- a/embassy/src/lib.rs +++ b/embassy/src/lib.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #![no_std] | 1 | #![cfg_attr(not(feature = "std"), no_std)] |
| 2 | #![feature(slice_fill)] | 2 | #![feature(slice_fill)] |
| 3 | #![feature(generic_associated_types)] | 3 | #![feature(generic_associated_types)] |
| 4 | #![feature(const_fn)] | 4 | #![feature(const_fn)] |
