26 lines
1022 B
TOML
26 lines
1022 B
TOML
[package]
|
|
name = "obscura-render"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
description = "Optional scoped render layer for Obscura: layout (taffy) and, with the paint feature, text and raster output for screenshots."
|
|
|
|
[features]
|
|
default = []
|
|
# Rasterize the laid-out tree to a pixmap (tiny-skia) with text (ab_glyph) and images.
|
|
# Off by default; the layout core (getBoundingClientRect etc.) works without it.
|
|
paint = ["dep:tiny-skia", "dep:ab_glyph", "dep:image", "dep:ureq", "dep:base64"]
|
|
|
|
[dependencies]
|
|
taffy = { workspace = true }
|
|
obscura-dom = { workspace = true }
|
|
tiny-skia = { workspace = true, optional = true }
|
|
ab_glyph = { workspace = true, optional = true }
|
|
image = { version = "0.24", default-features = false, features = ["jpeg", "png", "webp"], optional = true }
|
|
ureq = { version = "2.9", default-features = false, features = ["tls"], optional = true }
|
|
base64 = { workspace = true, optional = true }
|
|
cssparser = "0.34"
|
|
[lib]
|
|
path = "src/lib.rs"
|