ndg-commonmark 2.5.1

Flavored CommonMark processor for Nix-related projects, with support for CommonMark, GFM, and Nixpkgs extensions.
Documentation
[dependencies.comrak]
default-features = false
features = ["syntect"]
version = "0.49.0"

[dependencies.html-escape]
version = "0.2.13"

[dependencies.kuchikikiki]
version = "0.9.1"

[dependencies.log]
version = "0.4.29"

[dependencies.markup5ever]
version = "0.36.1"

[dependencies.regex]
version = "1.12.2"

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

[dependencies.serde_json]
default-features = false
features = ["preserve_order"]
version = "1.0.145"

[dependencies.syntastica]
optional = true
version = "0.6.1"

[dependencies.syntastica-core]
optional = true
version = "0.6.1"

[dependencies.syntastica-parsers]
features = ["most"]
optional = true
version = "0.6.1"

[dependencies.syntastica-themes]
optional = true
version = "0.6.1"

[dependencies.syntect]
optional = true
version = "5.3.0"

[dependencies.tendril]
version = "0.4.3"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.two-face]
features = ["syntect-default-onig"]
optional = true
version = "0.4.5"

[dependencies.walkdir]
version = "2.5.0"

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

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

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

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

[features]
default = ["ndg-flavored", "syntastica"]
gfm = []
ndg-flavored = ["gfm", "nixpkgs"]
nixpkgs = []
syntastica = ["dep:syntastica", "dep:syntastica-core", "dep:syntastica-parsers", "dep:syntastica-themes"]
syntect = ["dep:syntect", "dep:two-face"]

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

[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
cargo_common_metadata = "allow"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
expect_used = "warn"
filetype_is_file = "warn"
get_unwrap = "warn"
implicit_return = "allow"
infinite_loop = "warn"
map_with_unused_argument_over_ranges = "warn"
missing_docs_in_private_items = "allow"
multiple_crate_versions = "allow"
non_ascii_literal = "allow"
non_std_lazy_statics = "warn"
panic = "deny"
pathbuf_init_then_push = "warn"
pattern_type_mismatch = "allow"
print_stderr = "warn"
print_stdout = "warn"
question_mark_used = "allow"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
similar_names = "allow"
single_call_fn = "allow"
std_instead_of_core = "allow"
todo = "warn"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unreachable = "warn"
unused_result_ok = "warn"
unused_trait_names = "allow"
unwrap_used = "deny"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.complexity]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.clippy.perf]
level = "warn"
priority = -1

[lints.clippy.style]
level = "warn"
priority = -1

[package]
authors = ["NotAShelf <raf@notashelf.dev>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["text-processing"]
description = "Flavored CommonMark processor for Nix-related projects, with support for CommonMark, GFM, and Nixpkgs extensions."
edition = "2024"
keywords = ["markdown", "nix", "nixpkgs", "nixos", "documentation"]
license = "MPL-2.0"
name = "ndg-commonmark"
readme = "README.md"
repository = "https://github.com/feel-co/ndg"
rust-version = "1.90"
version = "2.5.1"

[package.metadata.docs.rs]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]

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

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

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

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