mirror of https://github.com/linebender/xilem
88 lines
2.3 KiB
TOML
88 lines
2.3 KiB
TOML
[package]
|
|
name = "masonry"
|
|
version = "0.2.0"
|
|
description = "Data-oriented Rust UI design toolkit."
|
|
keywords = ["gui", "ui", "toolkit"]
|
|
categories = ["gui", "internationalization", "accessibility"]
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
exclude = ["/doc/", ".gitignore"]
|
|
rust-version.workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
# There are no platform specific docs.
|
|
default-target = "x86_64-unknown-linux-gnu"
|
|
targets = []
|
|
# rustdoc-scrape-examples tracking issue https://github.com/rust-lang/rust/issues/88791
|
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
|
|
|
[features]
|
|
default = []
|
|
# Enables tracing using tracy if the default Masonry tracing is used.
|
|
# https://github.com/wolfpld/tracy can be connected to when this feature is enabled.
|
|
tracy = ["dep:tracing-tracy", "dep:wgpu-profiler", "wgpu-profiler/tracy", "masonry_core/tracy"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
masonry_core.workspace = true
|
|
vello.workspace = true
|
|
wgpu.workspace = true
|
|
winit.workspace = true
|
|
tracing = { workspace = true, features = ["default"] }
|
|
tracing-tracy = { version = "0.11.3", optional = true }
|
|
pollster = "0.4.0"
|
|
accesskit_winit.workspace = true
|
|
wgpu-profiler = { optional = true, version = "0.19.0", default-features = false }
|
|
keyboard-types = "0.7.0"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
web-time.workspace = true
|
|
|
|
[dev-dependencies]
|
|
parley.workspace = true
|
|
smallvec.workspace = true
|
|
tracing = { workspace = true, features = ["default"] }
|
|
image = { workspace = true, features = ["png"] }
|
|
insta = { version = "1.39.0" }
|
|
accesskit.workspace = true
|
|
|
|
# Make wgpu use tracing for its spans.
|
|
profiling = { version = "1.0.15", features = ["profile-with-tracing"] }
|
|
|
|
[[example]]
|
|
name = "calc_masonry"
|
|
test = true
|
|
|
|
[[example]]
|
|
name = "custom_widget"
|
|
test = true
|
|
|
|
[[example]]
|
|
name = "grid_masonry"
|
|
test = true
|
|
|
|
[[example]]
|
|
name = "hello_masonry"
|
|
test = true
|
|
|
|
[[example]]
|
|
name = "simple_image"
|
|
test = true
|
|
#required-features = ["image", "png"]
|
|
# This actually enables scraping for all examples, not just this one.
|
|
# However it is possible to set doc-scrape-examples to false for other specific examples.
|
|
doc-scrape-examples = true
|
|
|
|
[[example]]
|
|
name = "to_do_list"
|
|
test = true
|
|
|
|
[[example]]
|
|
name = "two_textboxes"
|
|
test = true
|