Compare commits

...

2 Commits

Author SHA1 Message Date
Taiki Endo 0f4e715d05
Merge pull request #13 from vinaychandra/no_std
`no_std` support
2021-03-15 14:27:24 +09:00
Vinay Chandra Dommeti 8a5c2de61d
no_std support 2021-03-14 22:22:15 -07:00
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.
///