about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-01-24 21:00:31 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-01-26 15:42:15 -0800
commitcdfdc1eb6b9ff58b4a264d1c112dfcbf6e9187ae (patch)
tree648f2dad8b0b1d0a079a569deaf304e241b15512 /src/librustdoc/html
parent26114838944128ffe66d1e9fc897cb45b1a5eb1d (diff)
downloadrust-cdfdc1eb6b9ff58b4a264d1c112dfcbf6e9187ae.tar.gz
rust-cdfdc1eb6b9ff58b4a264d1c112dfcbf6e9187ae.zip
Move extra::flate to libflate
This is hopefully the beginning of the long-awaited dissolution of libextra.
Using the newly created build infrastructure for building libraries, I decided
to move the first module out of libextra.

While not being a particularly meaty module in and of itself, the flate module
is required by rustc and additionally has a native C dependency. I was able to
very easily split out the C dependency from rustrt, update librustc, and
magically everything gets installed to the right locations and built
automatically.

This is meant to be a proof-of-concept commit to how easy it is to remove
modules from libextra now. I didn't put any effort into modernizing the
interface of libflate or updating it other than to remove the one glob import it
had.
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/markdown.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs
index 5d0728c8cdf..d53adb78a30 100644
--- a/src/librustdoc/html/markdown.rs
+++ b/src/librustdoc/html/markdown.rs
@@ -16,7 +16,9 @@
 //! functionality through a unit-struct, `Markdown`, which has an implementation
 //! of `fmt::Default`. Example usage:
 //!
-//! ```rust
+//! ```rust,ignore
+//! use rustdoc::html::markdown::Markdown;
+//!
 //! let s = "My *markdown* _text_";
 //! let html = format!("{}", Markdown(s));
 //! // ... something using html