diff --git a/capnp/src/io.rs b/capnp/src/io.rs index ed18edcfd..0866f7de6 100644 --- a/capnp/src/io.rs +++ b/capnp/src/io.rs @@ -162,7 +162,7 @@ mod no_std_impls { } } -#[cfg(feature = "embedded-io")] +#[cfg(all(feature = "embedded-io", not(feature = "std")))] mod no_std_impls { use crate::io::{BufRead, Read, Write}; use crate::Result;