[package]
edition = "2024"
name = "markdown-frontmatter"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A type-safe markdown frontmatter parser"
readme = "README.md"
license = "MIT"
repository = "https://github.com/imbolc/markdown-frontmatter"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["full"]
full = [
"json",
"toml",
"yaml",
]
json = [
"dep:serde",
"dep:serde_json",
]
toml = [
"dep:serde",
"dep:toml",
]
yaml = [
"dep:serde",
"dep:serde_yaml",
]
[lib]
name = "markdown_frontmatter"
path = "src/lib.rs"
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.serde_yaml]
version = "0.9.34"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.toml]
version = "1"
optional = true
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"
[lints.rust.future_incompatible]
level = "deny"
priority = -2
[lints.rust.keyword_idents]
level = "deny"
priority = -2
[lints.rust.let_underscore]
level = "deny"
priority = -2
[lints.rust.nonstandard_style]
level = "deny"
priority = -2
[lints.rust.refining_impl_trait]
level = "deny"
priority = -2
[lints.rust.rust_2018_compatibility]
level = "deny"
priority = -2
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -2
[lints.rust.rust_2021_compatibility]
level = "deny"
priority = -2
[lints.rust.rust_2024_compatibility]
level = "deny"
priority = -2
[lints.rust.unreachable_pub]
level = "warn"
priority = -1
[lints.rust.unused]
level = "warn"
priority = -1