From fc92971dcac24d4e88b5b9c612c70889e8b3ffbc Mon Sep 17 00:00:00 2001 From: Dan Burkert Date: Sun, 25 Jun 2017 14:28:50 -0700 Subject: [PATCH] Add crate doc root https://github.com/brson/rust-api-guidelines#c-html-root --- Cargo.toml | 1 + lmdb-sys/Cargo.toml | 1 + lmdb-sys/src/lib.rs | 2 ++ src/lib.rs | 2 ++ 4 files changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e8412c9..d9fb76a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "lmdb" +# NB: When modifying, also modify html_root_url in lib.rs version = "0.6.0" authors = ["Dan Burkert "] license = "Apache-2.0" diff --git a/lmdb-sys/Cargo.toml b/lmdb-sys/Cargo.toml index 6f625f1..67b12f3 100644 --- a/lmdb-sys/Cargo.toml +++ b/lmdb-sys/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "lmdb-sys" +# NB: When modifying, also modify html_root_url in lib.rs version = "0.6.0" authors = ["Dan Burkert "] license = "Apache-2.0" diff --git a/lmdb-sys/src/lib.rs b/lmdb-sys/src/lib.rs index 92e681a..55d1a2c 100644 --- a/lmdb-sys/src/lib.rs +++ b/lmdb-sys/src/lib.rs @@ -1,4 +1,6 @@ #![allow(non_camel_case_types)] +#![deny(warnings)] +#![doc(html_root_url = "https://docs.rs/lmdb-sys/0.6.0")] extern crate libc; diff --git a/src/lib.rs b/src/lib.rs index 60533f3..442b558 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,8 @@ //! [Symas Lightning Memory-Mapped Database (LMDB)](http://symas.com/mdb/). #![cfg_attr(test, feature(test))] +#![deny(warnings)] +#![doc(html_root_url = "https://docs.rs/lmdb/0.6.0")] extern crate libc; extern crate lmdb_sys as ffi;