From c0481c97f3d740fb0e7a2852f670ee342456ca24 Mon Sep 17 00:00:00 2001 From: Andy Gauge Date: Mon, 17 Jul 2017 11:49:50 -0700 Subject: [PATCH] Added hyperlinks to internal methods/structs/functions within docs. --- src/lib.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d156fe0..f485e41 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,12 +10,15 @@ //! //! The purpose of this crate is to provide the utility functions necessary to //! compile C code into a static archive which is then linked into a Rust crate. -//! The top-level `compile_library` function serves as a convenience and more -//! advanced configuration is available through the `Config` builder. +//! The top-level [`compile_library`] function serves as a convenience. More +//! advanced configuration is available through the [`Config`] builder. //! //! This crate will automatically detect situations such as cross compilation or //! other environment variables set by Cargo and will build code appropriately. //! +//! [`compile_library`]: fn.compile_library.html +//! [`Config`]: struct.Config.html +//! //! # Examples //! //! Use the default configuration: @@ -181,7 +184,9 @@ pub fn compile_library(output: &str, files: &[&str]) { impl Config { /// Construct a new instance of a blank set of configuration. /// - /// This builder is finished with the `compile` function. + /// This builder is finished with the [`compile`] function. + /// + /// [`compile`]: struct.Config.html#method.compile pub fn new() -> Config { Config { include_directories: Vec::new(), @@ -392,7 +397,7 @@ impl Config { /// /// This option is automatically scraped from the `HOST` environment /// variable by build scripts, so it's not required to call this function. - /// + /// /// # Example /// /// ```no_run