gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 501HTML 254C 19JavaScript 81414 Definitions

⎇ e56838be328f53ae5ef3d53ad297843ee8e992ba Cargo.toml TOML · 62 lines · 1.4 KB History raw

Prepare for 0.3.2 release (#367) 54ed355d4 · Nico Burns ·

1[package]
2name = "taffy"
3version = "0.3.2"
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", "css-grid", "grid"]
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"
42serde_json = "1.0.93"
43
44# Enable example and test-specific features
45taffy = { path = ".", features = ["random"] }
46
47[profile.release]
48lto = true
49panic = 'abort'
50
51[[bench]]
52name = "flexbox"
53path = "benches/flexbox.rs"
54harness = false
55
56[[bench]]
57name = "grid"
58path = "benches/grid.rs"
59harness = false
60
61[workspace]
62members = ["scripts/gentest", "scripts/import-yoga-tests"]