gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 497HTML 254C 19JavaScript 81329 Sutichaykuna

⎇ 0.4.x Cargo.toml TOML · 76 siq'ikuna · 2.1 KB Ñawpa willay ch'uya

Prepare for v0.4.1 release (#633) b7a5a06fd · Nico Burns ·

1[package]
2name = "taffy"
3version = "0.4.1"
4authors = [
5    "Alice Cecile <alice.i.cecile@gmail.com>",
6    "Johnathan Kelley <jkelleyrtp@gmail.com>",
7    "Nico Burns <nico@nicoburns.com>",
8]
9edition = "2021"
10rust-version = "1.65"
11include = ["src/**/*", "Cargo.toml", "README.md"]
12description = "A flexible UI layout library "
13repository = "https://github.com/DioxusLabs/taffy"
14keywords = ["cross-platform", "layout", "flexbox", "css-grid", "grid"]
15categories = ["gui"]
16license = "MIT"
17
18[dependencies]
19arrayvec = { version = "0.7", default-features = false }
20num-traits = { version = "0.2", default-features = false }
21serde = { version = "1.0", default-features = false, optional = true, features = ["serde_derive"] }
22slotmap = { version = "1.0.6", default-features = false, optional = true }
23grid = { version = "0.13.0", default-features = false, optional = true }
24
25### FEATURES #################################################################
26
27[features]
28default = ["std", "taffy_tree", "flexbox", "grid", "block_layout", "content_size"]
29
30### Algorithms 
31
32# Enables the Block layout algorithm
33block_layout = []
34# Enables the Flexbox layout algorithm
35flexbox = []
36# Enables the CSS Grid layout algorithm
37grid = ["alloc", "dep:grid"]
38# Causes all algorithms to compute and output a content size for each node
39content_size = []
40
41### Taffy Tree
42
43# Enable the built-in Taffy node tree
44taffy_tree = ["dep:slotmap"]
45
46### Other
47
48# Add serde derives to Style structs
49serde = ["dep:serde"]
50# Allow Taffy to depend on the standard library
51std = ["num-traits/std", "grid?/std", "serde?/std", "slotmap?/std"]
52# Allow Taffy to depend on the alloc library
53alloc = ["serde?/alloc"]
54# Internal feature for debugging
55debug = ["std"]
56# Internal feature for profiling
57profile = ["std"]
58
59[dev-dependencies]
60cosmic-text = "0.11.2"
61serde_json = "1.0.93"
62
63# Enable default features for tests and examples
64taffy = { path = "." }
65
66[profile.release]
67lto = true
68panic = 'abort'
69
70[[bench]]
71name = "dummy_benchmark"
72path = "benches/dummy_benchmark.rs"
73harness = false
74
75[workspace]
76members = ["scripts/gentest", "scripts/format-fixtures", "scripts/import-yoga-tests", "benches"]