[package]
name = "thorvg"
version = "0.4.0"
edition = "2024"
license = "MIT"
description = "Safe Rust bindings to the ThorVG vector graphics library"
readme = "../README.md"
repository = "https://github.com/goyox86/thorvg-rs"
homepage = "https://github.com/goyox86/thorvg-rs"
documentation = "https://docs.rs/thorvg"
categories = ["graphics", "rendering", "no-std"]
keywords = ["thorvg", "vector-graphics", "svg", "lottie", "canvas"]

[features]
default = [
  "vendored",
  "std",
  "lottie",
  "svg",
  "png",
  "fonts",
  "expressions",
  "threads",
  "file-io",
]
vendored = ["thorvg-sys/vendored"]
std = ["thorvg-sys/file-io"]

# Pass-through features to thorvg-sys — controls which ThorVG loaders
# and capabilities are compiled into the static library.
lottie = ["thorvg-sys/lottie"]
svg = ["thorvg-sys/svg"]
png = ["thorvg-sys/png"]
fonts = ["thorvg-sys/fonts"]
expressions = ["thorvg-sys/expressions"]
threads = ["thorvg-sys/threads"]
file-io = ["thorvg-sys/file-io"]

[dependencies]
thorvg-sys = { path = "../thorvg-sys", version = "0.2", default-features = false }
# no_std trig for Matrix::rotate (sinf/cosf are unavailable in core).
libm = "0.2"

[dev-dependencies]
png = "0.17"
