From c7ca904401ff3dddfe271dea4312855d74564e1a Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 14 Jun 2019 15:19:15 -0600 Subject: [PATCH] fix(dict): Balance dev speed with risk of introducing breaks I've been cutting down the dict size to speed up my testing but I keep submitting it. Instead, it is a feature. --- Cargo.toml | 4 ++++ build.rs | 1 + 2 files changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 39cf096..7c13915 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,10 @@ edition = "2018" travis-ci = { repository = "crate-ci/defenestrate" } appveyor = { repository = "epage/defenestrate" } +[features] +# Support quickly iterating +iterate_unstable = [] + [dependencies] failure = "0.1" structopt = "0.2" diff --git a/build.rs b/build.rs index ff8d85b..e5325d8 100644 --- a/build.rs +++ b/build.rs @@ -24,6 +24,7 @@ fn main() { for record in &records { let value = format!(r#""{}""#, &record[1]); builder.entry(unicase::UniCase(&record[0]), &value); + #[cfg(features = "iterate_unstable")] break; } builder.build(&mut file).unwrap();