diff --git a/Cargo.toml b/Cargo.toml index e0c1ce0a49..0a9d1815ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ members = [ "tools", "cli" ] [dependencies] unicode-xid = "0.1.0" -text_unit = "0.1.1" +text_unit = "0.1.2" itertools = "0.7.5" [dev-dependencies] diff --git a/cli/src/main.rs b/cli/src/main.rs index 546cbb66b8..ad7119533a 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -7,6 +7,7 @@ extern crate tools; use clap::{App, Arg, SubCommand}; use std::{fs, io::Read, path::Path}; use tools::collect_tests; +use std::time::Instant; type Result = ::std::result::Result; @@ -32,7 +33,9 @@ fn main() -> Result<()> { .get_matches(); match matches.subcommand() { ("parse", _) => { + let start = Instant::now(); let tree = parse()?; + eprintln!("elapsed {:?}", start.elapsed()); println!("{}", tree); } ("render-test", Some(matches)) => {