Merge pull request #13 from vinaychandra/no_std

`no_std` support
This commit is contained in:
Taiki Endo 2021-03-15 14:27:24 +09:00 committed by GitHub
commit 0f4e715d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.
///