Crates.io | docmatic |
lib.rs | docmatic |
version | 0.1.2 |
source | src |
created_at | 2018-04-17 17:34:18.840974 |
updated_at | 2018-04-25 21:54:19.053313 |
description | Test Rust examples in your documentation. |
homepage | |
repository | https://github.com/assert-rs/docmatic |
max_upload_size | |
id | 61105 |
size | 24,576 |
Be dogmatic about working documentation.
First, add this to your Cargo.toml
:
[dev-dependencies]
docmatic = "0.1"
Next, in your test file:
extern crate docmatic;
fn test_readme() {
docmatic::assert_file("README.md");
}
For more information on using docmatic, look at the documentation
Compared to doing nothing:
Compared to #![doc(include = "../README.md")]
Compared to rustdoc -L target/debug/deps/ --test README.md
Compared to skeptic:
[build-dependencies]
cargo test
(each block is a distinct test)docmatic
is distributed under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, and LICENSE-MIT for details.
We're grateful for all of the work done on skeptic, the spiritual predecessor to docmatic and the work of people iterating on a lighter weight solution.