-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #543 - jyn514:doc-runs, r=Mark-Simulacrum
Add a mode for reading docs.rs metadata when running rustdoc Closes #532 Before merging, I need to publish the `docsrs-metadata` package to crates.io so crater doesn't depend on a git version.
- Loading branch information
Showing
13 changed files
with
350 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "docs-rs-features" | ||
version = "0.1.0" | ||
authors = ["Joshua Nelson <[email protected]>"] | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
|
||
[package.metadata.docs.rs] | ||
features = ["docs_rs_feature"] | ||
|
||
[features] | ||
docs_rs_feature = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#[cfg(feature = "docs_rs_feature")] | ||
compile_error!("oh no, a hidden regression!"); | ||
|
||
fn main() { | ||
println!("Hello, world!"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[server.bot-acl] | ||
rust-teams = true | ||
github = ["pietroalbini"] | ||
|
||
[server.labels] | ||
remove = "^S-" | ||
experiment-queued = "S-waiting-on-crater" | ||
experiment-completed = "S-waiting-on-review" | ||
|
||
[server.distributed] | ||
chunk-size = 32 | ||
|
||
[demo-crates] | ||
crates = [] | ||
github-repos = [] | ||
local-crates = ["build-pass", "docs-rs-features"] | ||
|
||
[sandbox] | ||
memory-limit = "512M" | ||
build-log-max-size = "2M" | ||
build-log-max-lines = 1000 | ||
|
||
[crates] | ||
|
||
[github-repos] | ||
|
||
[local-crates] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"available_archives": [ | ||
{ | ||
"name": "All the crates", | ||
"path": "logs-archives/all.tar.gz" | ||
}, | ||
{ | ||
"name": "test-pass crates", | ||
"path": "logs-archives/test-pass.tar.gz" | ||
}, | ||
{ | ||
"name": "build-fail crates", | ||
"path": "logs-archives/build-fail.tar.gz" | ||
} | ||
], | ||
"crates_count": 2, | ||
"nav": [ | ||
{ | ||
"active": false, | ||
"label": "Summary", | ||
"url": "index.html" | ||
}, | ||
{ | ||
"active": false, | ||
"label": "Full report", | ||
"url": "full.html" | ||
}, | ||
{ | ||
"active": true, | ||
"label": "Downloads", | ||
"url": "downloads.html" | ||
} | ||
] | ||
} |
Oops, something went wrong.