xtask: Clean up doc output
* Don't render docs for examples * Don't include a workaround for a problematic nightly feature we no longer use
This commit is contained in:
parent
cea8a9718a
commit
c54b96dc69
@ -1,7 +1,7 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["crates/*", "examples/*", "xtask"]
|
members = ["crates/*", "examples/*", "xtask"]
|
||||||
# xtask should only be compiled when invoked explicitly
|
# Only compile / check / document the public crates by default
|
||||||
default-members = ["crates/*", "examples/*"]
|
default-members = ["crates/*"]
|
||||||
|
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
|
@ -20,15 +20,7 @@ impl DocTask {
|
|||||||
rustdocflags += " -Dwarnings";
|
rustdocflags += " -Dwarnings";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Keep in sync with .github/workflows/docs.yml
|
let mut cmd = cmd!("rustup run nightly cargo doc --all-features --no-deps")
|
||||||
let mut cmd = cmd!(
|
|
||||||
"
|
|
||||||
rustup run nightly cargo doc --all-features --no-deps --workspace
|
|
||||||
--exclude ruma-macros --exclude ruma-identifiers-validation --exclude xtask
|
|
||||||
"
|
|
||||||
)
|
|
||||||
// Work around https://github.com/rust-lang/cargo/issues/10744
|
|
||||||
.env("CARGO_TARGET_APPLIES_TO_HOST", "true")
|
|
||||||
.env("RUSTDOCFLAGS", rustdocflags);
|
.env("RUSTDOCFLAGS", rustdocflags);
|
||||||
|
|
||||||
if self.open {
|
if self.open {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user