File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 10
10
//!
11
11
//! The purpose of this crate is to provide the utility functions necessary to
12
12
//! compile C code into a static archive which is then linked into a Rust crate.
13
- //! The top-level `compile_library` function serves as a convenience and more
14
- //! advanced configuration is available through the `Config` builder.
13
+ //! The top-level [ `compile_library`] function serves as a convenience. More
14
+ //! advanced configuration is available through the [ `Config`] builder.
15
15
//!
16
16
//! This crate will automatically detect situations such as cross compilation or
17
17
//! other environment variables set by Cargo and will build code appropriately.
18
18
//!
19
+ //! [`compile_library`]: fn.compile_library.html
20
+ //! [`Config`]: struct.Config.html
21
+ //!
19
22
//! # Examples
20
23
//!
21
24
//! Use the default configuration:
@@ -181,7 +184,9 @@ pub fn compile_library(output: &str, files: &[&str]) {
181
184
impl Config {
182
185
/// Construct a new instance of a blank set of configuration.
183
186
///
184
- /// This builder is finished with the `compile` function.
187
+ /// This builder is finished with the [`compile`] function.
188
+ ///
189
+ /// [`compile`]: struct.Config.html#method.compile
185
190
pub fn new ( ) -> Config {
186
191
Config {
187
192
include_directories : Vec :: new ( ) ,
@@ -392,7 +397,7 @@ impl Config {
392
397
///
393
398
/// This option is automatically scraped from the `HOST` environment
394
399
/// variable by build scripts, so it's not required to call this function.
395
- ///
400
+ ///
396
401
/// # Example
397
402
///
398
403
/// ```no_run
You can’t perform that action at this time.
0 commit comments