gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1112HTML 1039Markdown 12TOML 94628 Definiciones

⎇ morphorm Cargo.toml TOML · 53 líneas · 1.4 KB Historia crudo

Add morphorm feature flag 076cdbccd · Nico Burns ·

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", optional = true, features = ["serde_derive"] }
21slotmap = { version = "1.0.6", optional = true }
22grid = { version = "0.11.0", default-features = false, optional = true }
23
24[features]
25default = ["std", "flexbox", "grid", "block_layout", "morphorm", "taffy_tree"]
26block_layout = []
27flexbox = []
28grid = ["alloc", "dep:grid"]
29morphorm = []
30alloc = []
31std = ["num-traits/std", "grid?/std"]
32serde = ["dep:serde"]
33debug = []
34profile = []
35taffy_tree = ["dep:slotmap"]
36
37[dev-dependencies]
38serde_json = "1.0.93"
39
40# Enable default features for tests and examples
41taffy = { path = "." }
42
43[profile.release]
44lto = true
45panic = 'abort'
46
47[[bench]]
48name = "dummy_benchmark"
49path = "benches/dummy_benchmark.rs"
50harness = false
51
52[workspace]
53members = ["scripts/gentest", "scripts/format-fixtures", "scripts/import-yoga-tests", "benches"]