From 486d8bf3004d9a6ff0188c772c196b8958f6bd78 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Wed, 11 Aug 2021 22:08:15 -0400 Subject: [PATCH] put feature(test) behind unstable feat flag so compiling with stable works --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c28f732..6b5d667 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "influx-writer" -version = "0.19.1" +version = "0.19.2" authors = ["Jonathan Strong "] edition = "2018" description = "opinionated influxdb client" diff --git a/src/lib.rs b/src/lib.rs index fa7a212..da0b9ef 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,9 @@ //! Utilities to efficiently send data to influx //! -#![feature(test)] +#![cfg_attr(feature = "unstable", feature(test))] -#[cfg(test)] +#[cfg(all(feature = "unstable", test))] extern crate test; #[macro_use] extern crate slog;