rust/src/librustdoc
Mazdak Farrokhzad 4c3e95e84b
Rollup merge of #67074 - ehuss:extern-options, r=petrochenkov
Add options to --extern flag.

This changes the `--extern` flag so that it can take a series of options that changes its behavior. The general syntax is `[opts ':'] name ['=' path]` where `opts` is a comma separated list of options. Two options are supported, `priv` which replaces `--extern-private` and `noprelude` which avoids adding the crate to the extern prelude.

```text
--extern priv:mylib=/path/to/libmylib.rlib
--extern noprelude:alloc=/path/to/liballoc.rlib
```

`noprelude` is to be used by Cargo's build-std feature in order to use `--extern` to reference standard library crates.

This also includes a second commit which adds the `aux-crate` directive to compiletest. I can split this off into a separate PR if desired, but it helps with defining these kinds of tests. It is based on #54020, and can be used in the future to replace and simplify some of the Makefile tests.
2019-12-11 10:10:44 +01:00
..
clean Remove tidy comment 2019-12-10 10:42:03 +01:00
html Sort auto trait and blanket implementations display 2019-12-08 14:24:06 +01:00
passes move UnstableFeatures -> rustc_feature 2019-11-30 02:50:47 +01:00
test Separate librustcdoc module 2019-06-16 14:17:01 +03:00
theme librustdoc: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00
Cargo.toml Rebase rustc-rayon on rayon-1.2 2019-10-07 13:20:17 -07:00
config.rs Add options to --extern flag. 2019-12-09 08:08:13 -08:00
core.rs Add options to --extern flag. 2019-12-09 08:08:13 -08:00
docfs.rs Better handling of the sender channel part in rustdoc file writing 2019-06-21 12:00:49 +02:00
doctree.rs rustc, rustc_passes: don't depend on syntax_expand. 2019-10-27 17:05:57 +01:00
externalfiles.rs move UnstableFeatures -> rustc_feature 2019-11-30 02:50:47 +01:00
fold.rs Remove ReentrantMutex 2019-08-11 10:36:46 -04:00
lib.rs Add options to --extern flag. 2019-12-09 08:08:13 -08:00
markdown.rs move UnstableFeatures -> rustc_feature 2019-11-30 02:50:47 +01:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
test.rs Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk 2019-11-30 16:56:58 +01:00
theme.rs Warn instead of failing for themes 2019-11-18 16:43:47 +01:00
visit_ast.rs hir::ItemKind::Fn: use hir::MethodSig 2019-11-08 09:32:20 +01:00
visit_lib.rs Mutate DocContext from LibEmbargoVisitor and RustdocVisitor 2019-08-26 18:51:34 -04:00

For more information about how librustdoc works, see the rustc guide.