# 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"
name = "rpic-render"
version = "0.10.0"
authors = ["André Leite <leite@de.ufpe.br>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Raster (PNG) and PDF rendering for rpic, by rasterizing/converting its SVG output (pure Rust: resvg/tiny-skia, svg2pdf)."
readme = false
keywords = [
    "svg",
    "png",
    "pdf",
    "render",
    "rasterize",
]
categories = [
    "graphics",
    "rendering",
]
license = "BSD-2-Clause"
repository = "https://github.com/milkway/rpic-lang"
resolver = "2"

[features]
default = [
    "raster",
    "math",
]
math = [
    "dep:rpic-core",
    "dep:ratex-parser",
    "dep:ratex-layout",
    "dep:ratex-svg",
    "dep:ratex-types",
]
raster = [
    "dep:resvg",
    "dep:svg2pdf",
]

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

[dependencies.ratex-layout]
version = "0.1.12"
optional = true

[dependencies.ratex-parser]
version = "0.1.12"
optional = true

[dependencies.ratex-svg]
version = "0.1.12"
features = [
    "standalone",
    "embed-fonts",
]
optional = true

[dependencies.ratex-types]
version = "0.1.12"
optional = true

[dependencies.resvg]
version = "0.47.0"
optional = true

[dependencies.rpic-core]
version = "0.10.0"
optional = true

[dependencies.svg2pdf]
version = "0.13.0"
optional = true
