surf-parse 0.10.0

Parser for the SurfDoc format — typed document format with block directives, Markdown-compatible
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 = "surf-parse"
version = "0.10.0"
authors = ["CloudSurf Software LLC <hello@cloudsurf.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parser for the SurfDoc format — typed document format with block directives, Markdown-compatible"
homepage = "https://surfcontext.org"
readme = "README.md"
keywords = [
    "surfdoc",
    "markdown",
    "parser",
    "document",
    "accessibility",
]
categories = [
    "parser-implementations",
    "text-processing",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/cloudsurf-software/surf-parse"

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

[features]
cli = ["dep:clap"]
default = [
    "terminal",
    "slides",
]
native = []
pdf = [
    "typst",
    "typst-pdf",
    "typst-as-lib",
]
slides = []
terminal = ["colored"]
uniffi = [
    "dep:uniffi",
    "native",
]
wasm = ["wasm-bindgen"]

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

[[bin]]
name = "surf-lint"
path = "src/bin/surf-lint.rs"
required-features = ["cli"]

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

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

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

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

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

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

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

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

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

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

[dependencies.ammonia]
version = "4"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.colored]
version = "3"
optional = true

[dependencies.pulldown-cmark]
version = "0.12"
features = ["html"]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.thiserror]
version = "2"

[dependencies.toml]
version = "0.8"

[dependencies.typst]
version = "0.14"
optional = true

[dependencies.typst-as-lib]
version = "0.15"
features = [
    "typst-kit-fonts",
    "typst-kit-embed-fonts",
]
optional = true

[dependencies.typst-pdf]
version = "0.14"
optional = true

[dependencies.uniffi]
version = "0.28"
optional = true

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

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true