markdown-contract 0.4.0

Contracts for markdown documents: declare the frontmatter, headings, tables and lists a document must have, and get findings with line numbers. The Rust twin of @osdlc/markdown-contract.
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"
rust-version = "1.89"
name = "markdown-contract"
version = "0.4.0"
build = false
include = [
    "src/**/*.rs",
    "examples/**/*.rs",
    "README.md",
    "CHANGELOG.md",
    "LICENSE-MIT",
    "LICENSE-APACHE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Contracts for markdown documents: declare the frontmatter, headings, tables and lists a document must have, and get findings with line numbers. The Rust twin of @osdlc/markdown-contract."
homepage = "https://github.com/osdlc/osdlc/tree/main/packages/rust/markdown-contract"
readme = "README.md"
keywords = [
    "markdown",
    "validation",
    "contract",
    "frontmatter",
    "lint",
]
categories = [
    "parser-implementations",
    "text-processing",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/osdlc/osdlc"

[features]
default = ["native"]
native = []

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

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

[dependencies.comrak]
version = "=0.53.0"
default-features = false

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

[dependencies.markdown-link]
version = "0.7.0"

[dependencies.regex]
version = "1.8"

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

[dependencies.serde_json]
version = "1.0.40"

[dependencies.serde_yaml]
version = "0.9.4"

[dependencies.thiserror]
version = "2.0.17"

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"