# 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 = "2024"
rust-version = "1.88"
name = "takumi"
version = "0.55.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Render your React components to images."
homepage = "https://takumi.kane.tw"
readme = "README.md"
keywords = [
    "react",
    "image",
    "css",
    "flexbox",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kane50613/takumi"

[features]
avif = ["image/avif"]
default = [
    "woff2",
    "woff",
    "svg",
    "rayon",
    "avif",
]
rayon = [
    "dep:rayon",
    "image/rayon",
    "dashmap/rayon",
    "fast_image_resize/rayon",
]
svg = ["dep:resvg"]
woff = [
    "dep:wuff",
    "wuff/z",
]
woff2 = [
    "dep:wuff",
    "wuff/brotli",
]

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

[[test]]
name = "fixtures_animation"
path = "tests/fixtures_animation.rs"

[[test]]
name = "fixtures_inline"
path = "tests/fixtures_inline.rs"

[[test]]
name = "fixtures_style_alignment"
path = "tests/fixtures_style_alignment.rs"

[[test]]
name = "fixtures_style_background_image"
path = "tests/fixtures_style_background_image.rs"

[[test]]
name = "fixtures_style_clip_path"
path = "tests/fixtures_style_clip_path.rs"

[[test]]
name = "fixtures_style_filter"
path = "tests/fixtures_style_filter.rs"

[[test]]
name = "fixtures_style_layout"
path = "tests/fixtures_style_layout.rs"

[[test]]
name = "fixtures_style_object_fit"
path = "tests/fixtures_style_object_fit.rs"

[[test]]
name = "fixtures_style_object_position"
path = "tests/fixtures_style_object_position.rs"

[[test]]
name = "fixtures_style_opacity"
path = "tests/fixtures_style_opacity.rs"

[[test]]
name = "fixtures_style_overflow"
path = "tests/fixtures_style_overflow.rs"

[[test]]
name = "fixtures_style_padding"
path = "tests/fixtures_style_padding.rs"

[[test]]
name = "fixtures_style_position"
path = "tests/fixtures_style_position.rs"

[[test]]
name = "fixtures_style_sizing"
path = "tests/fixtures_style_sizing.rs"

[[test]]
name = "fixtures_style_spacing"
path = "tests/fixtures_style_spacing.rs"

[[test]]
name = "fixtures_style_text_decoration"
path = "tests/fixtures_style_text_decoration.rs"

[[test]]
name = "fixtures_style_transform"
path = "tests/fixtures_style_transform.rs"

[[test]]
name = "fixtures_style_visuals"
path = "tests/fixtures_style_visuals.rs"

[[test]]
name = "fixtures_svg"
path = "tests/fixtures_svg.rs"

[[test]]
name = "fixtures_text"
path = "tests/fixtures_text.rs"

[[test]]
name = "font_tests"
path = "tests/font_tests.rs"

[[test]]
name = "test_utils"
path = "tests/test_utils.rs"

[dependencies.color]
version = "0.3"

[dependencies.cssparser]
version = "0.36"

[dependencies.dashmap]
version = "6.1"

[dependencies.data-url]
version = "0.3"

[dependencies.derive_builder]
version = "0.20"

[dependencies.fast_image_resize]
version = "5.3"
features = ["only_u8x4"]

[dependencies.image]
version = "0.25"
features = [
    "jpeg",
    "png",
    "webp",
]
default-features = false

[dependencies.image-webp]
version = "0.2"

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

[dependencies.phf]
version = "0.13"
features = ["macros"]

[dependencies.png]
version = "0.18"

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.resvg]
version = "0.45"
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]

[dependencies.smallvec]
version = "1.15"
features = ["serde"]

[dependencies.swash]
version = "0.2"
features = [
    "std",
    "scale",
]
default-features = false

[dependencies.taffy]
version = "0.9"
features = [
    "flexbox",
    "grid",
    "std",
    "alloc",
    "taffy_tree",
    "strict_provenance",
    "block_layout",
]
default-features = false

[dependencies.thiserror]
version = "2.0.17"

[dependencies.wuff]
version = "0.2"
optional = true

[dependencies.zeno]
version = "0.3"

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

[dev-dependencies.tiny-skia]
version = "0.11"
features = [
    "std",
    "simd",
]
default-features = false
