render: constrain shrink-wrapped grid items
This commit is contained in:
1 parent
9dfc67af74
commit
d6be828d17
56 files changed
+22573
-2
No files matched your search
Vendored
+171
@@ -0,0 +1,171 @@
|
||||
# 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.12.1"
|
||||
authors = [
|
||||
"Alice Cecile <[email protected]>",
|
||||
"Johnathan Kelley <[email protected]>",
|
||||
"Nico Burns <[email protected]>",
|
||||
]
|
||||
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"
|
||||
Reference in new issue
Block a user