[package]
name = "taffy"
version = "0.5.2"
authors = [
"Alice Cecile <alice.i.cecile@gmail.com>",
"Johnathan Kelley <jkelleyrtp@gmail.com>",
"Nico Burns <nico@nicoburns.com>",
]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "examples/**/*", "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 }
document-features = { version = "0.2.7", optional = true }
num-traits = { version = "0.2", default-features = false }
serde = { version = "1.0", default-features = false, optional = true, features = [
"serde_derive",
] }
slotmap = { version = "1.0.6", default-features = false, optional = true }
grid = { version = "0.14.0", default-features = false, optional = true }
[package.metadata.docs.rs]
all-features = true
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = [
"std",
"taffy_tree",
"flexbox",
"grid",
"block_layout",
"content_size",
]
block_layout = []
flexbox = []
grid = ["alloc", "dep:grid"]
content_size = []
taffy_tree = ["dep:slotmap"]
serde = ["dep:serde"]
std = ["num-traits/std", "grid?/std", "serde?/std", "slotmap?/std"]
alloc = ["serde?/alloc"]
debug = ["std"]
profile = ["std"]
[dev-dependencies]
cosmic-text = "0.12"
serde_json = "1.0.93"
taffy = { path = "." }
[profile.release]
lto = true
panic = 'abort'
[[bench]]
name = "dummy_benchmark"
path = "benches/dummy_benchmark.rs"
harness = false
[[example]]
name = "basic"
doc-scrape-examples = true
[workspace]
members = [
"scripts/gentest",
"scripts/format-fixtures",
"scripts/import-yoga-tests",
"benches",
]