tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 499HTML 245JavaScript 8Markdown 71218 Definitions

⎇ direction-floats benches/dummy_benchmark.rs Rust · 11 lines · 487 B History Who touched what raw

Move benchmarks into their own crate (#451) 2b5366e42 · Nico Burns ·

1//! This "benchmark" exists solely to provide a nicer error message for users running "cargo bench"
2//! from the root of the repo. The correct way to run benchmarks is to run "cargo bench" from this
3//! benches directory
4
5fn main() {
6    eprintln!();
7    eprintln!("Error: Taffy's benchmarks are contained in a separate crate");
8    eprintln!("Please run 'cargo bench' from within the 'benches' directory, or use the alias 'cargo xbench'");
9    eprintln!();
10    std::process::exit(1);
11}