-
Notifications
You must be signed in to change notification settings - Fork 112
/
Cargo.toml
52 lines (45 loc) · 1.37 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "taffy"
version = "0.3.11"
authors = [
"Alice Cecile <[email protected]>",
"Johnathan Kelley <[email protected]>",
]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "Cargo.toml", "README.md"]
description = "A flexible UI layout library "
repository = "https://github.com/DioxusLabs/taffy"
keywords = ["cross-platform", "layout", "flexbox", "css-grid", "grid"]
categories = ["gui"]
license = "MIT"
[dependencies]
arrayvec = { version = "0.7", default-features = false }
num-traits = { version = "0.2", default-features = false }
serde = { version = "1.0", optional = true, features = ["serde_derive"] }
slotmap = { version = "1.0.6", optional = true }
grid = { version = "0.11.0", default-features = false, optional = true }
[features]
default = ["std", "flexbox", "grid", "block_layout", "taffy_tree"]
block_layout = []
flexbox = []
grid = ["alloc", "dep:grid"]
alloc = []
std = ["num-traits/std", "grid?/std"]
serde = ["dep:serde"]
debug = ["std"]
profile = ["std"]
taffy_tree = ["dep:slotmap"]
[dev-dependencies]
serde_json = "1.0.93"
# Enable default features for tests and examples
taffy = { path = "." }
[profile.release]
lto = true
panic = 'abort'
[[bench]]
name = "dummy_benchmark"
path = "benches/dummy_benchmark.rs"
harness = false
[workspace]
members = ["scripts/gentest", "scripts/format-fixtures", "scripts/import-yoga-tests", "benches"]