소스 검색

Auto merge of #325 - DarkEld3r:313-html-root-url-attribute, r=SimonSapin

Add html_root_url attribute

Fixes #313

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/325)
<!-- Reviewable:end -->
bors-servo 9 년 전
부모
커밋
780410c0f1
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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;