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.
This commit is contained in:
Ed Page 2019-06-14 15:19:15 -06:00
parent 34c922509a
commit c7ca904401
2 changed files with 5 additions and 0 deletions

View file

@ -15,6 +15,10 @@ edition = "2018"
travis-ci = { repository = "crate-ci/defenestrate" } travis-ci = { repository = "crate-ci/defenestrate" }
appveyor = { repository = "epage/defenestrate" } appveyor = { repository = "epage/defenestrate" }
[features]
# Support quickly iterating
iterate_unstable = []
[dependencies] [dependencies]
failure = "0.1" failure = "0.1"
structopt = "0.2" structopt = "0.2"

View file

@ -24,6 +24,7 @@ fn main() {
for record in &records { for record in &records {
let value = format!(r#""{}""#, &record[1]); let value = format!(r#""{}""#, &record[1]);
builder.entry(unicase::UniCase(&record[0]), &value); builder.entry(unicase::UniCase(&record[0]), &value);
#[cfg(features = "iterate_unstable")]
break; break;
} }
builder.build(&mut file).unwrap(); builder.build(&mut file).unwrap();