embedded-typst 0.1.0

A typst::World for embedding the Typst compiler: lazily loaded fonts, a virtual filesystem over several roots, Typst packages and reproducible dates. Native and Wasm.
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 = "2021"
rust-version = "1.92"
name = "embedded-typst"
version = "0.1.0"
authors = ["Casoon <info@casoon.de>"]
build = false
exclude = [
    "target/",
    ".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A typst::World for embedding the Typst compiler: lazily loaded fonts, a virtual filesystem over several roots, Typst packages and reproducible dates. Native and Wasm."
homepage = "https://github.com/casoon/embedded-typst"
documentation = "https://docs.rs/embedded-typst"
readme = "README.md"
keywords = [
    "typst",
    "pdf",
    "world",
    "embedded",
    "wasm",
]
categories = [
    "text-processing",
    "rendering",
]
license = "MIT"
repository = "https://github.com/casoon/embedded-typst"

[features]
default = ["typst-fonts"]
download = [
    "packages",
    "dep:ureq",
]
packages = ["dep:typst-kit"]
typst-fonts = ["dep:typst-assets"]

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

[[test]]
name = "world"
path = "tests/world.rs"
required-features = ["typst-fonts"]

[dependencies.chrono]
version = "0.4"
features = ["std"]
default-features = false

[dependencies.typst]
version = "0.15"

[dependencies.typst-assets]
version = "0.15"
features = ["fonts"]
optional = true

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

[dev-dependencies.typst-assets]
version = "0.15"
features = ["fonts"]

[dev-dependencies.typst-layout]
version = "0.15"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.chrono]
version = "0.4"
features = ["clock"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.fontdb]
version = "0.24"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.typst-kit]
version = "0.15"
features = ["system-packages"]
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ureq]
version = "2.12"
features = [
    "tls",
    "proxy-from-env",
]
optional = true
default-features = false