[package]
edition = "2021"
rust-version = "1.80.0"
name = "html-generator"
version = "0.0.5"
build = "build.rs"
exclude = [
"/.git/*",
"/.github/*",
"/.gitignore",
"/.vscode/*",
]
include = [
"/CONTRIBUTING.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/benches/**",
"/build.rs",
"/Cargo.toml",
"/data/**",
"/examples/**",
"/README.md",
"/src/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A robust Rust library designed for transforming Markdown into SEO-optimized, accessible HTML. Featuring front matter extraction, custom header processing, table of contents generation, and performance optimization for web projects of any scale.
"""
homepage = "https://html-generator.co/"
documentation = "https://doc.html-generator.co/html_generator/"
readme = "README.md"
keywords = [
"html",
"web_development",
"seo",
"html-generator",
]
categories = [
"web-programming",
"command-line-utilities",
"data-structures",
"parsing",
"development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sebastienrousseau/html-generator"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]
[package.metadata.wasm-pack.profile.release]
wasm-opt = [
"-Os",
"--enable-bulk-memory",
"--enable-nontrapping-float-to-int",
]
[package.metadata.clippy]
warn-lints = [
"clippy::all",
"clippy::pedantic",
"clippy::cargo",
"clippy::nursery",
"clippy::complexity",
"clippy::correctness",
"clippy::perf",
"clippy::style",
"clippy::suspicious",
"clippy::module_name_repetitions",
]
allow-lints = [
"clippy::module_inception",
"clippy::too_many_arguments",
"clippy::missing_docs_in_private_items",
]
deny-lints = [
"clippy::unwrap_used",
"clippy::expect_used",
]
[features]
async = ["dep:tokio"]
default = ["math"]
math = ["dep:pulldown-latex"]
wasm = [
"dep:wasm-bindgen",
"dep:js-sys",
]
[lib]
name = "html_generator"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[example]]
name = "hello"
path = "examples/hello.rs"
[[example]]
name = "pipeline"
path = "examples/pipeline.rs"
[[example]]
name = "frontmatter"
path = "examples/frontmatter.rs"
[[example]]
name = "accessibility"
path = "examples/accessibility.rs"
[[example]]
name = "seo"
path = "examples/seo.rs"
[[example]]
name = "toc"
path = "examples/toc.rs"
[[example]]
name = "minify"
path = "examples/minify.rs"
[[example]]
name = "errors"
path = "examples/errors.rs"
[[example]]
name = "config"
path = "examples/config.rs"
[[example]]
name = "headers"
path = "examples/headers.rs"
[[example]]
name = "async"
path = "examples/async.rs"
required-features = ["async"]
[[example]]
name = "custom_syntax"
path = "examples/custom_syntax.rs"
[[example]]
name = "emojis"
path = "examples/emojis.rs"
[[example]]
name = "math_and_diagrams"
path = "examples/math_and_diagrams.rs"
[[bench]]
name = "competitors"
path = "benches/competitors.rs"
harness = false
[[bench]]
name = "html_benchmark"
path = "benches/html_benchmark.rs"
harness = false
[dependencies.ammonia]
version = "4"
[dependencies.indexmap]
version = "2"
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.log]
version = "0.4"
[dependencies.minify-html]
version = "0.18"
[dependencies.once_cell]
version = "1.21.4"
[dependencies.pulldown-latex]
version = "0.7"
optional = true
[dependencies.regex]
version = "1.12.3"
[dependencies.scraper]
version = "0.26.0"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.149"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1.50.0"
features = [
"rt-multi-thread",
"macros",
]
optional = true
[dependencies.toml]
version = "1.1"
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dev-dependencies.tempfile]
version = "3.27.0"
[dev-dependencies.test-case]
version = "3.3.1"
[build-dependencies.version_check]
version = "0.9.5"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.mdx-gen]
version = "0.0.2"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.comrak]
version = "0.50"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.8"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.pulldown-cmark]
version = "0.13"
[target.'cfg(target_arch = "wasm32")'.dependencies.comrak]
version = "0.50"
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[lints.rust]
bare_trait_objects = "allow"
dead_code = "deny"
deprecated_in_future = "deny"
elided_lifetimes_in_paths = "allow"
ellipsis_inclusive_range_patterns = "deny"
explicit_outlives_requirements = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_copy_implementations = "warn"
missing_debug_implementations = "forbid"
missing_docs = "deny"
non_ascii_idents = "forbid"
non_camel_case_types = "allow"
non_upper_case_globals = "allow"
noop_method_call = "deny"
single_use_lifetimes = "deny"
trivial_bounds = "allow"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unreachable_pub = "forbid"
unsafe_code = "forbid"
unstable_features = "warn"
unused_extern_crates = "warn"
unused_features = "deny"
unused_import_braces = "deny"
unused_labels = "deny"
unused_lifetimes = "deny"
unused_macro_rules = "deny"
unused_qualifications = "deny"
unused_results = "warn"
variant_size_differences = "deny"
[lints.rust.future_incompatible]
level = "deny"
priority = -1
[lints.rust.keyword_idents]
level = "deny"
priority = -1
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rust.rust_2021_compatibility]
level = "deny"
priority = -1
[lints.rust.unused]
level = "deny"
priority = -1
[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
debug-assertions = false
overflow-checks = false
incremental = false
strip = "symbols"
[profile.dev]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
panic = "unwind"
overflow-checks = true
incremental = true
strip = false
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
panic = "abort"
overflow-checks = false
incremental = false
strip = "symbols"
[profile.test]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
overflow-checks = true
incremental = true
strip = false