Remove the optional generic-array feature
- It can be added back later if needed - A public dependency implies version coupling, and we can't afford to have it for a niche use case.
This commit is contained in:
@@ -32,24 +32,6 @@ pub trait ArrayExt : Array {
|
||||
|
||||
impl<A> ArrayExt for A where A: Array { }
|
||||
|
||||
#[cfg(feature = "use_generic_array")]
|
||||
unsafe impl<T, U> Array for ::generic_array::GenericArray<T, U>
|
||||
where U: ::generic_array::ArrayLength<T>
|
||||
{
|
||||
type Item = T;
|
||||
type Index = usize;
|
||||
fn as_ptr(&self) -> *const Self::Item {
|
||||
(**self).as_ptr()
|
||||
}
|
||||
fn as_mut_ptr(&mut self) -> *mut Self::Item {
|
||||
(**self).as_mut_ptr()
|
||||
}
|
||||
fn capacity() -> usize {
|
||||
U::to_usize()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
impl Index for u8 {
|
||||
#[inline(always)]
|
||||
fn to_usize(self) -> usize { self as usize }
|
||||
|
||||
@@ -14,19 +14,11 @@
|
||||
//! - Use the unstable feature untagged unions for the internal implementation,
|
||||
//! which has reduced space overhead
|
||||
//!
|
||||
//! - `use_generic_array`
|
||||
//! - Optional
|
||||
//! - Requires Rust stable channel
|
||||
//! - Depend on generic-array and allow using it just like a fixed
|
||||
//! size array for ArrayVec storage.
|
||||
#![doc(html_root_url="https://docs.rs/arrayvec/0.3/")]
|
||||
#![cfg_attr(not(feature="std"), no_std)]
|
||||
extern crate odds;
|
||||
extern crate nodrop;
|
||||
|
||||
#[cfg(feature = "use_generic_array")]
|
||||
extern crate generic_array;
|
||||
|
||||
#[cfg(not(feature="std"))]
|
||||
extern crate core as std;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user