mdbook-validator 1.2.0

An mdBook preprocessor that validates code blocks using Docker containers
Documentation
[[bin]]
name = "mdbook-validator"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.bollard]
version = "0.18"

[dependencies.futures-util]
version = "0.3"

[dependencies.mdbook-preprocessor]
version = "0.5"

[dependencies.pulldown-cmark]
version = "0.13"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.testcontainers]
version = "0.23"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
features = ["rt", "macros", "io-util"]
version = "1"

[dependencies.toml]
version = "0.5"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
features = ["env-filter"]
version = "0.3"

[dev-dependencies.cargo-husky]
features = ["precommit-hook", "run-cargo-clippy", "run-cargo-fmt"]
version = "1.5"

[dev-dependencies.mockall]
version = "0.13"

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

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

[lints.clippy]
clone_on_ref_ptr = "deny"
dbg_macro = "deny"
doc_markdown = "allow"
expect_used = "deny"
implicit_clone = "deny"
indexing_slicing = "deny"
inefficient_to_string = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
redundant_clone = "deny"
str_to_string = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"
wildcard_imports = "deny"

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

[lints.rust]
unsafe_code = "deny"

[package]
authors = ["Ryan Stortz <ryan@withzombies.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["development-tools::build-utils", "development-tools::testing"]
description = "An mdBook preprocessor that validates code blocks using Docker containers"
edition = "2021"
homepage = "https://github.com/withzombies/mdbook-validator"
keywords = ["mdbook", "validation", "documentation", "docker", "testing"]
license = "Apache-2.0"
name = "mdbook-validator"
readme = "README.md"
repository = "https://github.com/withzombies/mdbook-validator"
rust-version = "1.75.0"
version = "1.2.0"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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