Browse Source

Add html_root_url attribute

Stanislav Tkach 9 years ago
parent
commit
4ceb629ea4
2 changed files with 3 additions and 0 deletions
  1. 1 0
      Cargo.toml
  2. 2 0
      src/lib.rs

+ 1 - 0
Cargo.toml

@@ -1,6 +1,7 @@
 [package]
 
 name = "url"
+# When updating version, also modify html_root_url in the lib.rs
 version = "1.4.0"
 authors = ["The rust-url developers"]
 

+ 2 - 0
src/lib.rs

@@ -90,6 +90,8 @@ let css_url = this_document.join("../main.css").unwrap();
 assert_eq!(css_url.as_str(), "http://servo.github.io/rust-url/main.css")
 */
 
+#![doc(html_root_url = "https://docs.rs/url/1.4.0")]
+
 #[cfg(feature="rustc-serialize")] extern crate rustc_serialize;
 #[macro_use] extern crate matches;
 #[cfg(feature="serde")] extern crate serde;