diff --git a/src/lib.rs b/src/lib.rs index f7d8610..d8ba615 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -118,6 +118,8 @@ compile_error! {"\ build script as well. "} +extern crate alloc; + #[cfg(feature = "proc-macro")] extern crate proc_macro; diff --git a/src/marker.rs b/src/marker.rs index 59fd096..e648dd2 100644 --- a/src/marker.rs +++ b/src/marker.rs @@ -1,6 +1,6 @@ +use alloc::rc::Rc; use core::marker::PhantomData; -use std::panic::{RefUnwindSafe, UnwindSafe}; -use std::rc::Rc; +use core::panic::{RefUnwindSafe, UnwindSafe}; // Zero sized marker with the correct set of autotrait impls we want all proc // macro types to have. diff --git a/src/rcvec.rs b/src/rcvec.rs index 4b3920b..37955af 100644 --- a/src/rcvec.rs +++ b/src/rcvec.rs @@ -1,8 +1,8 @@ +use alloc::rc::Rc; +use alloc::vec; use core::mem; +use core::panic::RefUnwindSafe; use core::slice; -use std::panic::RefUnwindSafe; -use std::rc::Rc; -use std::vec; pub(crate) struct RcVec { inner: Rc>,