Benchmarking is the only thing that requires unstable Rust in the
library any more. Yay!
license = "MIT/Apache-2.0"
[features]
license = "MIT/Apache-2.0"
[features]
//! This crate provides the `AnyMap` type, a safe and convenient store for one value of each type.
//! This crate provides the `AnyMap` type, a safe and convenient store for one value of each type.
-#![cfg_attr(all(feature = "unstable", test), feature(test))]
+#![cfg_attr(all(feature = "bench", test), feature(test))]
#![warn(missing_docs, unused_results)]
#![warn(missing_docs, unused_results)]
-#[cfg(all(feature = "unstable", test))]
+#[cfg(all(feature = "bench", test))]
extern crate test;
use std::any::TypeId;
extern crate test;
use std::any::TypeId;
-#[cfg(feature = "unstable")]
+#[cfg(feature = "bench")]
#[bench]
fn bench_insertion(b: &mut ::test::Bencher) {
b.iter(|| {
#[bench]
fn bench_insertion(b: &mut ::test::Bencher) {
b.iter(|| {
-#[cfg(feature = "unstable")]
+#[cfg(feature = "bench")]
#[bench]
fn bench_get_missing(b: &mut ::test::Bencher) {
b.iter(|| {
#[bench]
fn bench_get_missing(b: &mut ::test::Bencher) {
b.iter(|| {
-#[cfg(feature = "unstable")]
+#[cfg(feature = "bench")]
#[bench]
fn bench_get_present(b: &mut ::test::Bencher) {
b.iter(|| {
#[bench]
fn bench_get_present(b: &mut ::test::Bencher) {
b.iter(|| {