markplus_render 0.1.0

HTML and PDF renderer for the MarkPlus ecosystem (AST → HTML / Typst → PDF)
Documentation
# 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 = "markplus_render"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTML and PDF renderer for the MarkPlus ecosystem (AST → HTML / Typst → PDF)"
readme = "README.md"
keywords = [
    "markdown",
    "renderer",
    "typst",
    "html",
    "wasm",
]
categories = [
    "text-processing",
    "rendering",
    "wasm",
]
license = "Apache-2.0"
repository = "https://github.com/PurnenduK90/markplus-render"

[features]
default = []
wasm = [
    "wasm-bindgen",
    "web-sys",
    "serde-wasm-bindgen",
    "console_error_panic_hook",
]

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.console_error_panic_hook]
version = "0.1"
optional = true

[dependencies.markplus_core]
version = "1.0.0"

[dependencies.serde]
version = "1.0"
features = ["derive"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.tera]
version = "1.20"

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

[dependencies.web-sys]
version = "0.3"
features = ["console"]
optional = true

[dev-dependencies.tempfile]
version = "3"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.js-sys]
version = "0.3"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.typst]
version = "0.14"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.typst-as-lib]
version = "0.15"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.typst-pdf]
version = "0.14"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.typst]
version = "0.14"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.typst-as-lib]
version = "0.15"
features = [
    "packages",
    "reqwest",
    "typst-kit-fonts",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.typst-kit]
version = "0.14"
features = ["fonts"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.typst-pdf]
version = "0.14"