Skip to content

Commit

Permalink
Compile and test the README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
emgre committed Jan 4, 2020
1 parent 7042875 commit f9df604
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ maintenance = { status = "experimental" }
[dependencies]
winapi = { version = "0.3", features = ["bcrypt", "ntstatus"] }
zeroize = { version = "1.1", optional = true }
doc-comment = "0.3"

[dev-dependencies]
doc-comment = "0.3"

[features]
default = ["zeroize"]
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use doc_comment::doctest;
use winapi::shared::ntdef::NTSTATUS;
use winapi::shared::ntstatus;

Expand All @@ -7,6 +8,9 @@ pub mod symmetric;

mod helpers;

// Compile and test the README
doctest!("../README.md");

/// Error type
///
/// These errors are a subset of [`NTSTATUS`](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/596a1078-e883-4972-9bbc-49e60bebca55).
Expand Down

0 comments on commit f9df604

Please sign in to comment.