Fix build for std
This commit is contained in:
parent
33dce24e8a
commit
58bd708ccb
@ -5,7 +5,7 @@ authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
|
||||
edition = "2018"
|
||||
|
||||
[features]
|
||||
std = []
|
||||
std = ["futures/std"]
|
||||
|
||||
[dependencies]
|
||||
defmt = "0.1.0"
|
||||
|
@ -110,8 +110,8 @@ impl From<io::Error> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl std::error::Error for Error {}
|
||||
//#[cfg(feature = "std")]
|
||||
//impl std::error::Error for Error {}
|
||||
|
||||
/*
|
||||
impl From<smoltcp::Error> for Error {
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![no_std]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
#![feature(slice_fill)]
|
||||
#![feature(generic_associated_types)]
|
||||
#![feature(const_fn)]
|
||||
|
Loading…
Reference in New Issue
Block a user