summaryrefslogtreecommitdiff
path: root/serde_dhall
diff options
context:
space:
mode:
Diffstat (limited to 'serde_dhall')
-rw-r--r--serde_dhall/Cargo.toml3
-rw-r--r--serde_dhall/src/lib.rs3
2 files changed, 6 insertions, 0 deletions
diff --git a/serde_dhall/Cargo.toml b/serde_dhall/Cargo.toml
index 71a9b02..4e3cce7 100644
--- a/serde_dhall/Cargo.toml
+++ b/serde_dhall/Cargo.toml
@@ -15,3 +15,6 @@ dhall = { version = "=0.4.0", path = "../dhall" }
dhall_proc_macros = { version = "=0.4.0", path = "../dhall_proc_macros" }
reqwest = { version = "0.10", features = ["blocking"] }
url = "2.1"
+
+[dev-dependencies]
+doc-comment = "0.3"
diff --git a/serde_dhall/src/lib.rs b/serde_dhall/src/lib.rs
index 5b8f470..4250882 100644
--- a/serde_dhall/src/lib.rs
+++ b/serde_dhall/src/lib.rs
@@ -168,6 +168,9 @@
//! [serde]: https://docs.serde.rs/serde/
//! [serde::Deserialize]: https://docs.serde.rs/serde/trait.Deserialize.html
+#[cfg(doctest)]
+doc_comment::doctest!("../../README.md");
+
mod error;
/// Finer-grained control over deserializing Dhall
pub mod options;