# 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"
rust-version = "1.89"
name = "pikru"
version = "1.2.1"
authors = ["Amos Wenger <amos@bearcove.eu>"]
build = false
exclude = ["vendor/**"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure Rust implementation of pikchr, a PIC-like diagram markup language that generates SVG"
homepage = "https://github.com/bearcove/pikru"
documentation = "https://docs.rs/pikru"
readme = "README.md"
keywords = [
    "pikchr",
    "diagram",
    "svg",
    "pic",
    "markdown",
]
categories = [
    "graphics",
    "text-processing",
    "visualization",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bearcove/pikru"

[package.metadata."docs.rs"]
rustdoc-args = [
    "--html-in-header",
    "arborium-header.html",
]

[features]
default = []
tracing = ["dep:tracing"]

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

[[example]]
name = "allnew"
path = "examples/allnew.rs"

[[example]]
name = "check_gaps"
path = "examples/check_gaps.rs"

[[example]]
name = "chop"
path = "examples/chop.rs"

[[example]]
name = "compare_all"
path = "examples/compare_all.rs"

[[example]]
name = "compare_svg"
path = "examples/compare_svg.rs"

[[example]]
name = "css_vars"
path = "examples/css_vars.rs"

[[example]]
name = "dots"
path = "examples/dots.rs"

[[example]]
name = "fill"
path = "examples/fill.rs"

[[example]]
name = "fit"
path = "examples/fit.rs"

[[example]]
name = "fromto"
path = "examples/fromto.rs"

[[example]]
name = "hexcolor"
path = "examples/hexcolor.rs"

[[example]]
name = "multiseg"
path = "examples/multiseg.rs"

[[example]]
name = "render"
path = "examples/render.rs"

[[example]]
name = "rounded"
path = "examples/rounded.rs"

[[example]]
name = "shapes"
path = "examples/shapes.rs"

[[example]]
name = "simple"
path = "examples/simple.rs"

[[example]]
name = "sublist"
path = "examples/sublist.rs"

[[example]]
name = "test_file"
path = "examples/test_file.rs"

[[example]]
name = "test_macro"
path = "examples/test_macro.rs"

[[example]]
name = "textpos"
path = "examples/textpos.rs"

[[example]]
name = "textstyle"
path = "examples/textstyle.rs"

[[test]]
name = "pikchr_tests"
path = "tests/pikchr_tests.rs"
harness = false

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

[dependencies.ariadne]
version = "0.6"

[dependencies.enum_dispatch]
version = "0.3"

[dependencies.facet-svg]
version = "0.46"

[dependencies.glam]
version = "0.29"

[dependencies.pest]
version = "2.8.4"

[dependencies.pest_derive]
version = "2.8.4"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tracing]
version = "0.1.43"
optional = true

[dev-dependencies.camino]
version = "1.2.1"

[dev-dependencies.datatest-stable]
version = "0.3"

[dev-dependencies.tracing]
version = "0.1.43"

[dev-dependencies.tracing-subscriber]
version = "0.3.22"
features = ["env-filter"]
