tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 788HTML 740Markdown 12TOML 62536 Definitions

⎇ bf3dfaec9e387a7e67408fc78ca869d7eaaa8e1f Cargo.toml TOML · 71 lines · 1.5 KB History raw

CSS Grid Benchmarks (#340) 1624a68d7 · Nico Burns ·

1[package]
2name = "taffy"
3version = "0.3.0-alpha1"
4authors = [
5    "Alice Cecile <alice.i.cecile@gmail.com>",
6    "Johnathan Kelley <jkelleyrtp@gmail.com>",
7]
8edition = "2021"
9include = ["src/**/*", "Cargo.toml", "README.md"]
10description = "A flexible UI layout library"
11repository = "https://github.com/DioxusLabs/taffy"
12keywords = ["cross-platform", "layout", "flexbox"]
13categories = ["gui"]
14license = "MIT"
15
16[dependencies]
17arrayvec = { version = "0.7", default-features = false }
18num-traits = { version = "0.2", default-features = false }
19rand = { version = "0.8.5", optional = true }
20serde = { version = "1.0", optional = true, features = ["serde_derive"] }
21slotmap = "1.0.6"
22grid = { version = "0.9.0", optional = true }
23
24[features]
25default = ["std", "grid"]
26grid = ["dep:grid"]
27alloc = []
28std = ["num-traits/std"]
29serde = ["dep:serde"]
30random = ["dep:rand"]
31yoga_benchmark = []
32debug = []
33profile = []
34
35[dev-dependencies]
36criterion = "0.4"
37rstest = "0.16.0"
38rand = "0.8.5"
39rand_chacha = "0.3.1"
40yoga = "0.4.0"
41ordered-float = "3.4.0"
42
43# Enable example and test-specific features
44taffy = { path = ".", features = ["random"] }
45
46[profile.release]
47lto = true
48panic = 'abort'
49
50[[bench]]
51name = "generated"
52path = "benches/generated/mod.rs"
53harness = false
54
55[[bench]]
56name = "complex"
57path = "benches/complex.rs"
58harness = false
59
60[[bench]]
61name = "big_tree_flexbox"
62path = "benches/big_tree_flexbox.rs"
63harness = false
64
65[[bench]]
66name = "big_tree_grid"
67path = "benches/big_tree_grid.rs"
68harness = false
69
70[workspace]
71members = ["scripts/gentest", "scripts/import-yoga-tests"]