Layout algorithm decoupling, Sizing Constraints & Perf Improvements (#246)
1[package]
2name = "taffy"
3version = "0.2.0"
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"
22
23[features]
24default = ["std"]
25alloc = []
26std = ["num-traits/std"]
27serde = ["dep:serde"]
28random = ["dep:rand"]
29debug = []
30
31[dev-dependencies]
32criterion = "0.4"
33rstest = "0.15.0"
34rand = "0.8.5"
35rand_chacha = "0.3.1"
36# We need to explicitly set a version here so that cargo deny doesn't complain
37# Don't forget to update this when bumping the version of taffy!
38taffy = { path = ".", version = "0.2.0", features = ["random"] }
39
40[profile.release]
41lto = true
42panic = 'abort'
43
44[[bench]]
45name = "generated"
46path = "benches/generated/mod.rs"
47harness = false
48
49[[bench]]
50name = "complex"
51path = "benches/complex.rs"
52harness = false
53
54[[bench]]
55name = "big_tree"
56path = "benches/big_tree.rs"
57harness = false
58
59[workspace]
60members = ["scripts/gentest"]