gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definitions

⎇ 868b3a47e525b3480d0bd3a4207a7ebc1c9db470 Cargo.toml TOML · 61 lines · 1.3 KB History raw

WIP: 0.3.0 release (#357) 868b3a47e · Nico Burns ·

1[package]
2name = "taffy"
3version = "0.3.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"
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 = "flexbox"
52path = "benches/flexbox.rs"
53harness = false
54
55[[bench]]
56name = "grid"
57path = "benches/grid.rs"
58harness = false
59
60[workspace]
61members = ["scripts/gentest", "scripts/import-yoga-tests"]