gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 231Rust 9TOML 3CSS 1345 Definiciones

⎇ rayon Cargo.toml TOML · 77 líneas · 2.1 KB Historia crudo

Rayon WIP dde8c6aa4 · Nico Burns ·

1[package]
2name = "taffy"
3version = "0.4.3"
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 }
24rayon = "1.10.0"
25
26### FEATURES #################################################################
27
28[features]
29default = ["std", "taffy_tree", "flexbox", "grid", "block_layout", "content_size"]
30
31### Algorithms 
32
33# Enables the Block layout algorithm
34block_layout = []
35# Enables the Flexbox layout algorithm
36flexbox = []
37# Enables the CSS Grid layout algorithm
38grid = ["alloc", "dep:grid"]
39# Causes all algorithms to compute and output a content size for each node
40content_size = []
41
42### Taffy Tree
43
44# Enable the built-in Taffy node tree
45taffy_tree = ["dep:slotmap"]
46
47### Other
48
49# Add serde derives to Style structs
50serde = ["dep:serde"]
51# Allow Taffy to depend on the standard library
52std = ["num-traits/std", "grid?/std", "serde?/std", "slotmap?/std"]
53# Allow Taffy to depend on the alloc library
54alloc = ["serde?/alloc"]
55# Internal feature for debugging
56debug = ["std"]
57# Internal feature for profiling
58profile = ["std"]
59
60[dev-dependencies]
61cosmic-text = "0.11.2"
62serde_json = "1.0.93"
63
64# Enable default features for tests and examples
65taffy = { path = "." }
66
67[profile.release]
68lto = true
69panic = 'abort'
70
71[[bench]]
72name = "dummy_benchmark"
73path = "benches/dummy_benchmark.rs"
74harness = false
75
76[workspace]
77members = ["scripts/gentest", "scripts/format-fixtures", "scripts/import-yoga-tests", "benches"]