[package]
edition = "2024"
name = "kaolin"
version = "0.1.15"
authors = ["Tommaso Morganti <tommaso.morganti@polinetwork.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for flexible layouts, inspired by Clay"
readme = "README.md"
keywords = [
"layout",
"flexbox",
"rust",
"clay",
"ui",
]
categories = [
"gui",
"no-std",
]
license-file = "LICENSE"
repository = "https://github.com/toto04/kaolin"
[features]
embedded = [
"dep:embedded-graphics",
"dep:u8g2-fonts",
]
raylib = ["dep:raylib"]
[lib]
name = "kaolin"
path = "src/lib.rs"
[[example]]
name = "embedded"
path = "examples/embedded.rs"
required-features = ["embedded"]
[[example]]
name = "raylib"
path = "examples/raylib.rs"
required-features = ["raylib"]
[[test]]
name = "alignment_and_justification"
path = "tests/alignment_and_justification.rs"
[[test]]
name = "basic_rendering"
path = "tests/basic_rendering.rs"
[[test]]
name = "bench"
path = "tests/bench.rs"
[[test]]
name = "color_inheritance"
path = "tests/color_inheritance.rs"
[[test]]
name = "common"
path = "tests/common.rs"
[[test]]
name = "error_handling"
path = "tests/error_handling.rs"
[[test]]
name = "gaps_and_spacing"
path = "tests/gaps_and_spacing.rs"
[[test]]
name = "nested_containers"
path = "tests/nested_containers.rs"
[[test]]
name = "sizing_behavior"
path = "tests/sizing_behavior.rs"
[[test]]
name = "styling"
path = "tests/styling.rs"
[[test]]
name = "text_wrapping"
path = "tests/text_wrapping.rs"
[dependencies.derive_setters]
version = "0.1.8"
[dependencies.embedded-graphics]
version = "0.8.1"
optional = true
[dependencies.getrandom]
version = "0.3.4"
[dependencies.raylib]
version = "5.5.1"
optional = true
[dependencies.typed_floats]
version = "1.0.6"
features = ["compiler_hints"]
default-features = false
[dependencies.u8g2-fonts]
version = "0.5.2"
optional = true
[dependencies.unicode-segmentation]
version = "1.12.0"
[dependencies.uuid]
version = "1.18.1"
default-features = false
[dev-dependencies.clay-layout]
version = "0.4.0"
[dev-dependencies.embedded-graphics-simulator]
version = "0.7.0"
[profile.bench]
debug = 2