[package]
edition = "2024"
name = "thorvg"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings to the ThorVG vector graphics library"
homepage = "https://github.com/goyox86/thorvg-rs"
documentation = "https://docs.rs/thorvg"
readme = "README.md"
keywords = [
"thorvg",
"vector-graphics",
"svg",
"lottie",
"canvas",
]
categories = [
"graphics",
"rendering",
"no-std",
]
license = "MIT"
repository = "https://github.com/goyox86/thorvg-rs"
resolver = "2"
[features]
default = [
"vendored",
"std",
"lottie",
"svg",
"png",
"fonts",
"expressions",
"threads",
"file-io",
]
expressions = ["thorvg-sys/expressions"]
file-io = ["thorvg-sys/file-io"]
fonts = ["thorvg-sys/fonts"]
lottie = ["thorvg-sys/lottie"]
png = ["thorvg-sys/png"]
std = ["thorvg-sys/file-io"]
svg = ["thorvg-sys/svg"]
threads = ["thorvg-sys/threads"]
vendored = ["thorvg-sys/vendored"]
[lib]
name = "thorvg"
path = "src/lib.rs"
[[example]]
name = "blending"
path = "examples/blending.rs"
[[example]]
name = "clipping"
path = "examples/clipping.rs"
[[example]]
name = "gradient"
path = "examples/gradient.rs"
[[example]]
name = "masking"
path = "examples/masking.rs"
[[example]]
name = "opacity"
path = "examples/opacity.rs"
[[example]]
name = "paint_order"
path = "examples/paint_order.rs"
[[example]]
name = "paths"
path = "examples/paths.rs"
[[example]]
name = "picture_svg"
path = "examples/picture_svg.rs"
[[example]]
name = "render_to_buffer"
path = "examples/render_to_buffer.rs"
[[example]]
name = "scene"
path = "examples/scene.rs"
[[example]]
name = "scene_effects"
path = "examples/scene_effects.rs"
[[example]]
name = "shapes"
path = "examples/shapes.rs"
[[example]]
name = "stroke"
path = "examples/stroke.rs"
[[example]]
name = "transforms"
path = "examples/transforms.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[dependencies.libm]
version = "0.2"
[dependencies.thorvg-sys]
version = "0.3.0"
default-features = false
[dev-dependencies.png]
version = "0.17"