Skip to content

Commit

Permalink
fix(rust): make rust doc tests not run with nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenj committed Jan 2, 2025
1 parent b6e9afc commit b5b6331
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 4 additions & 2 deletions earthly/rust/scripts/std_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def cargo_lint(flags: str, verbose: bool = False) -> exec_manager.Result:

def cargo_doctest(flags: str, verbose: bool = False) -> exec_manager.Result:
return exec_manager.cli_run(
"cargo +nightly testdocs " + f"{flags} ",
"cargo testdocs " + f"{flags} ",
name="Documentation tests all pass check",
verbose=verbose,
)
Expand Down Expand Up @@ -95,7 +95,9 @@ def cargo_bench(flags: str, verbose: bool = False) -> exec_manager.Result:

def cargo_doc(verbose: bool = False) -> exec_manager.Result:
return exec_manager.cli_run(
"cargo +nightly docs ", name="Documentation build", verbose=verbose
"cargo +nightly docs --enable-index-page -Z unstable-options",
name="Documentation build",
verbose=verbose
)


Expand Down
6 changes: 1 addition & 5 deletions earthly/rust/stdcfgs/cargo_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ rustflags = [

[build]
rustflags = []
rustdocflags = [
"--enable-index-page",
"-Z",
"unstable-options",
]
rustdocflags = []

[profile.dev]
opt-level = 1
Expand Down
6 changes: 1 addition & 5 deletions examples/rust/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ rustflags = [

[build]
rustflags = []
rustdocflags = [
"--enable-index-page",
"-Z",
"unstable-options",
]
rustdocflags = []

[profile.dev]
opt-level = 1
Expand Down

0 comments on commit b5b6331

Please sign in to comment.