diff --git a/capnp/src/private/capability.rs b/capnp/src/private/capability.rs index cf0581360..f5f393e7e 100644 --- a/capnp/src/private/capability.rs +++ b/capnp/src/private/capability.rs @@ -19,6 +19,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. +#![cfg(feature = "alloc")] + use crate::any_pointer; use crate::capability::{Params, Promise, RemotePromise, Request, Results}; use crate::MessageSize;