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"
|
edition = "2018"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
std = []
|
std = ["futures/std"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
defmt = "0.1.0"
|
defmt = "0.1.0"
|
||||||
|
@ -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 {
|
||||||
|
@ -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)]
|
||||||
|
Loading…
Reference in New Issue
Block a user