--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,6 +26,9 @@
 license = "GPL-3.0-or-later"
 repository = "https://gitlab.com/volian/rust-apt"
 
+[lib]
+doctest = false
+
 [dependencies.cxx]
 version = "1.0"
 
