# 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 = "2021"
rust-version = "1.74"
name = "kymostudio-core"
version = "0.4.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type it. See it appear. Watch it animate. (Core)"
homepage = "https://github.com/kymostudio/kymostudio"
readme = "README.md"
keywords = [
    "svg",
    "png",
    "rasterizer",
    "diagram",
    "resvg",
]
categories = [
    "multimedia::images",
    "wasm",
]
license = "Apache-2.0"
repository = "https://github.com/kymostudio/kymostudio"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

[features]
bpmn = [
    "dep:roxmltree",
    "dep:serde_json",
]
default = [
    "system-fonts",
    "pdf",
]
pdf = ["dep:svg2pdf"]
python = [
    "dep:pyo3",
    "system-fonts",
    "pdf",
    "bpmn",
]
system-fonts = [
    "resvg/system-fonts",
    "resvg/memmap-fonts",
]
wasm = [
    "dep:wasm-bindgen",
    "pdf",
    "bpmn",
]

[lib]
name = "kymostudio_core"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"

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

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

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

[dependencies.pyo3]
version = "0.28"
features = [
    "extension-module",
    "abi3-py310",
]
optional = true

[dependencies.resvg]
version = "0.47"
features = [
    "text",
    "raster-images",
]
default-features = false

[dependencies.roxmltree]
version = "0.20"
optional = true

[dependencies.serde_json]
version = "1"
optional = true

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

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

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

[dev-dependencies.sha2]
version = "0.10"

[profile.release]
opt-level = 3
lto = true
strip = true
