diff --git a/earthly/rust/scripts/std_build.py b/earthly/rust/scripts/std_build.py index 070a22a1d..fbb17ca6b 100755 --- a/earthly/rust/scripts/std_build.py +++ b/earthly/rust/scripts/std_build.py @@ -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, ) @@ -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 ) diff --git a/earthly/rust/stdcfgs/cargo_config.toml b/earthly/rust/stdcfgs/cargo_config.toml index 6641db1fa..cd8aa55e3 100644 --- a/earthly/rust/stdcfgs/cargo_config.toml +++ b/earthly/rust/stdcfgs/cargo_config.toml @@ -27,11 +27,7 @@ rustflags = [ [build] rustflags = [] -rustdocflags = [ - "--enable-index-page", - "-Z", - "unstable-options", -] +rustdocflags = [] [profile.dev] opt-level = 1 diff --git a/examples/rust/.cargo/config.toml b/examples/rust/.cargo/config.toml index 6641db1fa..cd8aa55e3 100644 --- a/examples/rust/.cargo/config.toml +++ b/examples/rust/.cargo/config.toml @@ -27,11 +27,7 @@ rustflags = [ [build] rustflags = [] -rustdocflags = [ - "--enable-index-page", - "-Z", - "unstable-options", -] +rustdocflags = [] [profile.dev] opt-level = 1