gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 684HTML 640Markdown 12TOML 62286 Definiciones

⎇ 0.1.x Cargo.toml TOML · 61 líneas · 1.4 KB Historia crudo

Backport big tree benchmarks to 0.1 59c2af6eb · Nico Burns ·

1[package]
2name = "taffy"
3version = "0.1.0"
4authors = [
5    "Alice Cecile <alice.i.cecile@gmail.com>",
6    "Johnathan Kelley <jkelleyrtp@gmail.com>",
7]
8edition = "2021"
9include = ["src/**/*", "Cargo.toml"]
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 }
18hash32 = "0.2"
19hash32-derive = "0.1"
20num-traits = { version = "0.2", default-features = false }
21typenum = "1"
22hashbrown = { version = "0.12", optional = true }
23rand = { version = "0.8.5", optional = true }
24serde = { version = "1.0", optional = true, features = ["serde_derive"] }
25
26[features]
27default = ["std"]
28alloc = ["hashbrown"]
29std = ["num-traits/std"]
30serde = ["dep:serde"]
31random = ["dep:rand"]
32
33[dev-dependencies]
34criterion = "0.3"
35rand = "0.8.5"
36rand_chacha = "0.3.1"
37# We need to explicitly set a version here so that cargo deny doesn't complain
38# Don't forget to update this when bumping the version of taffy!
39taffy = { path = ".", version = "0.1.0", features = ["random"] }
40
41[profile.release]
42lto = true
43panic = 'abort'
44
45[[bench]]
46name = "generated"
47path = "benches/generated/mod.rs"
48harness = false
49
50[[bench]]
51name = "big_tree"
52path = "benches/big_tree.rs"
53harness = false
54
55[[bench]]
56name = "complex"
57path = "benches/complex.rs"
58harness = false
59
60[workspace]
61members = ["scripts/gentest"]