tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 717HTML 669Markdown 12TOML 62372 Definiciones

⎇ 440843c700455363383e0a4fc365a15deebd4717 Cargo.toml TOML · 75 líneas · 2.1 KB Historia crudo

Make `slotmap` dependency compatible with `no_std` environments (#594) 440843c70 · Conall Keane ·

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