now it compiles for no_std

This commit is contained in:
2022-12-30 23:09:58 +01:00
parent f109d59d56
commit 743a2c7611
11 changed files with 159 additions and 134 deletions

View File

@ -51,10 +51,10 @@
//! assert_eq!(example_obj.id, obj_id);
//! assert_eq!(example_obj.dummy, 42);
//! ```
#[cfg(feature = "alloc")]
use alloc::boxed::Box;
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
use downcast_rs::Downcast;
#[cfg(feature = "alloc")]
use hashbrown::HashMap;
#[cfg(feature = "std")]
use std::error::Error;