diff --git a/Cargo.toml b/Cargo.toml index f0d92c6..2789d50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -slab = "0.4.7" +slab = { version = "0.4.7", default-features = false } [dev-dependencies] proptest = "1" diff --git a/src/lib.rs b/src/lib.rs index cd9693f..a8cab80 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,9 @@ //! assert_eq!(q.poll(100), Some("second")); //! ``` -use std::fmt; +#![no_std] + +use core::fmt; use slab::Slab; @@ -477,7 +479,9 @@ pub struct Timer(usize); #[cfg(test)] mod tests { - use std::collections::HashMap; + extern crate std; + + use std::{vec::Vec, collections::HashMap}; use super::*; use proptest::prelude::*;