From 9e2edfeae2f936a85a01cb6fae3a5d3f808c69c3 Mon Sep 17 00:00:00 2001 From: jam1garner Date: Wed, 8 Apr 2020 14:20:42 -0400 Subject: [PATCH] Add support for no_std --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index a4905ae..2a9d360 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,4 @@ +#![no_std] //! **Typed distributed plugin registration.** //! //! This crate provides a way to set up a plugin registry into which plugins @@ -94,6 +95,9 @@ //! There is no guarantee about the order that plugins of the same type are //! visited by the iterator. They may be visited in any order. +extern crate alloc; +use alloc::boxed::Box; + // Not public API. #[doc(hidden)] pub use ctor::ctor;