aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2020-10-12 14:05:48 +0200
committerDario Nieuwenhuis <[email protected]>2020-10-12 14:05:48 +0200
commit58bd708ccb67d317d1a5ccbf07dc1c8363cd0d6a (patch)
treecff853e5b26ee7ca6d46bbf9e88896e66787db38
parent33dce24e8a87070417c0905f6639e9952f26c602 (diff)
Fix build for std
-rw-r--r--embassy/Cargo.toml2
-rw-r--r--embassy/src/io/error.rs4
-rw-r--r--embassy/src/lib.rs2
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]>"]
5edition = "2018" 5edition = "2018"
6 6
7[features] 7[features]
8std = [] 8std = ["futures/std"]
9 9
10[dependencies] 10[dependencies]
11defmt = "0.1.0" 11defmt = "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")]
114impl std::error::Error for Error {} 114//impl std::error::Error for Error {}
115 115
116/* 116/*
117impl From<smoltcp::Error> for Error { 117impl 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)]