[package] name = "taffy" version = "0.4.3" authors = [ "Alice Cecile ", "Johnathan Kelley ", "Nico Burns ", ] 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", default-features = false, optional = true, features = ["serde_derive"] } slotmap = { version = "1.0.6", default-features = false, optional = true } grid = { version = "0.13.0", default-features = false, optional = true } rayon = "1.10.0" ### FEATURES ################################################################# [features] default = ["std", "taffy_tree", "flexbox", "grid", "block_layout", "content_size"] ### Algorithms # Enables the Block layout algorithm block_layout = [] # Enables the Flexbox layout algorithm flexbox = [] # Enables the CSS Grid layout algorithm grid = ["alloc", "dep:grid"] # Causes all algorithms to compute and output a content size for each node content_size = [] ### Taffy Tree # Enable the built-in Taffy node tree taffy_tree = ["dep:slotmap"] ### Other # Add serde derives to Style structs serde = ["dep:serde"] # Allow Taffy to depend on the standard library std = ["num-traits/std", "grid?/std", "serde?/std", "slotmap?/std"] # Allow Taffy to depend on the alloc library alloc = ["serde?/alloc"] # Internal feature for debugging debug = ["std"] # Internal feature for profiling profile = ["std"] [dev-dependencies] cosmic-text = "0.11.2" 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"]