# 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.3.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type it. See it appear. Watch it animate."
homepage = "https://github.com/kymostudio/kymostudio"
readme = "README.md"
keywords = [
    "svg",
    "png",
    "rasterizer",
    "diagram",
    "resvg",
]
categories = [
    "multimedia::images",
    "command-line-utilities",
    "wasm",
]
license = "Apache-2.0"
repository = "https://github.com/kymostudio/kymostudio"

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

[features]
default = ["system-fonts"]
python = [
    "dep:pyo3",
    "system-fonts",
]
system-fonts = [
    "resvg/system-fonts",
    "resvg/memmap-fonts",
]
wasm = ["dep:wasm-bindgen"]

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

[[bin]]
name = "kymo"
path = "src/main.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.wasm-bindgen]
version = "0.2"
optional = true

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