# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.71"
name = "taffy"
version = "0.11.0"
authors = [
    "Alice Cecile <alice.i.cecile@gmail.com>",
    "Johnathan Kelley <jkelleyrtp@gmail.com>",
    "Nico Burns <nico@nicoburns.com>",
]
build = false
include = [
    "src/**/*",
    "examples/**/*",
    "Cargo.toml",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A flexible UI layout library "
readme = "README.md"
keywords = [
    "cross-platform",
    "layout",
    "flexbox",
    "css-grid",
    "grid",
]
categories = ["gui"]
license = "MIT"
repository = "https://github.com/DioxusLabs/taffy"

[package.metadata.docs.rs]
all-features = true
cargo-args = [
    "-Zunstable-options",
    "-Zrustdoc-scrape-examples",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
alloc = ["serde?/alloc"]
block_layout = []
calc = []
content_size = []
debug = ["std"]
default = [
    "std",
    "taffy_tree",
    "flexbox",
    "grid",
    "block_layout",
    "float_layout",
    "calc",
    "content_size",
    "detailed_layout_info",
]
detailed_layout_info = []
flexbox = []
float_layout = []
grid = [
    "alloc",
    "dep:grid",
]
parse = ["dep:cssparser"]
parse_faster = [
    "parse",
    "cssparser/fast_match_byte",
]
profile = ["std"]
serde = ["dep:serde"]
std = [
    "grid?/std",
    "serde?/std",
    "slotmap?/std",
]
strict_provenance = []
taffy_tree = ["dep:slotmap"]

[lib]
name = "taffy"
path = "src/lib.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"
doc-scrape-examples = true

[[example]]
name = "custom_tree_owned_partial"
path = "examples/custom_tree_owned_partial.rs"

[[example]]
name = "custom_tree_owned_unsafe"
path = "examples/custom_tree_owned_unsafe.rs"

[[example]]
name = "custom_tree_vec"
path = "examples/custom_tree_vec.rs"

[[example]]
name = "flexbox_gap"
path = "examples/flexbox_gap.rs"

[[example]]
name = "grid_holy_grail"
path = "examples/grid_holy_grail.rs"

[[example]]
name = "measure"
path = "examples/measure.rs"

[[example]]
name = "nested"
path = "examples/nested.rs"

[dependencies.arrayvec]
version = "0.7"
default-features = false

[dependencies.cssparser]
version = "0.37.0"
optional = true
default-features = false

[dependencies.document-features]
version = "0.2.7"
optional = true

[dependencies.grid]
version = "1.0.0"
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = ["serde_derive"]
optional = true
default-features = false

[dependencies.slotmap]
version = "1.0.6"
optional = true
default-features = false

[dev-dependencies.roxmltree]
version = "0.21.1"

[dev-dependencies.serde_json]
version = "1.0.93"

[profile.release]
lto = true
panic = "abort"
