Skip to content

Commit

Permalink
Remove collections feature flag and disable VecMap, which is unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
erickt committed Apr 12, 2015
1 parent 7622255 commit 9a4ba04
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/de/impls.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet, VecMap};
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
use std::hash::Hash;
use std::marker::PhantomData;
use std::num::FromPrimitive;
Expand Down Expand Up @@ -572,6 +572,8 @@ impl<K, V> Deserialize for HashMap<K, V>

///////////////////////////////////////////////////////////////////////////////

// FIXME: `VecMap` is unstable.
/*
pub struct VecMapVisitor<V> {
marker: PhantomData<VecMap<V>>,
}
Expand Down Expand Up @@ -623,6 +625,7 @@ impl<V> Deserialize for VecMap<V>
deserializer.visit(VecMapVisitor::new())
}
}
*/

///////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! leaving serde to perform roughly the same speed as a hand written serializer for a specific
//! type.

#![feature(collections, core)]
#![feature(core)]


pub use ser::{Serialize, Serializer};
Expand Down
5 changes: 4 additions & 1 deletion src/ser/impls.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet, VecMap};
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
use std::hash::Hash;
use std::path;
use std::rc::Rc;
Expand Down Expand Up @@ -410,6 +410,8 @@ impl<K, V> Serialize for HashMap<K, V>
}
}

// FIXME: `VecMap` is unstable.
/*
impl<V> Serialize for VecMap<V>
where V: Serialize,
{
Expand All @@ -420,6 +422,7 @@ impl<V> Serialize for VecMap<V>
serializer.visit_map(MapIteratorVisitor::new(self.iter(), Some(self.len())))
}
}
*/

///////////////////////////////////////////////////////////////////////////////

Expand Down

0 comments on commit 9a4ba04

Please sign in to comment.