Fix build for std

This commit is contained in:
Dario Nieuwenhuis 2020-10-12 14:05:48 +02:00
parent 33dce24e8a
commit 58bd708ccb
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018" edition = "2018"
[features] [features]
std = [] std = ["futures/std"]
[dependencies] [dependencies]
defmt = "0.1.0" defmt = "0.1.0"

View File

@ -110,8 +110,8 @@ impl From<io::Error> for Error {
} }
} }
#[cfg(feature = "std")] //#[cfg(feature = "std")]
impl std::error::Error for Error {} //impl std::error::Error for Error {}
/* /*
impl From<smoltcp::Error> for Error { impl From<smoltcp::Error> for Error {

View File

@ -1,4 +1,4 @@
#![no_std] #![cfg_attr(not(feature = "std"), no_std)]
#![feature(slice_fill)] #![feature(slice_fill)]
#![feature(generic_associated_types)] #![feature(generic_associated_types)]
#![feature(const_fn)] #![feature(const_fn)]