no_std support

This commit is contained in:
Vinay Chandra Dommeti 2021-03-14 22:22:15 -07:00
parent e113df64ae
commit 8a5c2de61d
No known key found for this signature in database
GPG Key ID: 409C3C9C44DCD4E1
1 changed files with 10 additions and 6 deletions

View File

@ -13,15 +13,19 @@
//! * [Doubly linked list](https://github.com/smol-rs/vec-arena/blob/master/examples/linked_list.rs)
//! * [Splay tree](https://github.com/smol-rs/vec-arena/blob/master/examples/splay_tree.rs)
#![no_std]
#![forbid(unsafe_code)]
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
use std::fmt;
use std::iter;
use std::mem;
use std::ops::{Index, IndexMut};
use std::slice;
use std::vec;
extern crate alloc;
use alloc::fmt;
use alloc::vec;
use alloc::vec::Vec;
use core::iter;
use core::mem;
use core::ops::{Index, IndexMut};
use core::slice;
/// A slot, which is either vacant or occupied.
///