This is an automated email from the ASF dual-hosted git repository.
wayne pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 8bb971d3d8 Update rust_lint.sh to include cargo doc (#6070)
8bb971d3d8 is described below
commit 8bb971d3d83eb2a5f81c4bc7da211f652eba8b54
Author: Andrew Lamb <[email protected]>
AuthorDate: Fri Apr 21 03:37:55 2023 -0400
Update rust_lint.sh to include cargo doc (#6070)
---
dev/rust_lint.sh => ci/scripts/rust_docs.sh | 19 +++++--------------
dev/rust_lint.sh | 1 +
2 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/dev/rust_lint.sh b/ci/scripts/rust_docs.sh
similarity index 71%
copy from dev/rust_lint.sh
copy to ci/scripts/rust_docs.sh
index b1285cbc3f..033d6e890f 100755
--- a/dev/rust_lint.sh
+++ b/ci/scripts/rust_docs.sh
@@ -1,5 +1,5 @@
-#!/bin/bash
-
+#!/usr/bin/env bash
+#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
@@ -17,15 +17,6 @@
# specific language governing permissions and limitations
# under the License.
-# This script runs all the Rust lints locally the same way the
-# DataFusion CI does
-
-set -e
-if ! command -v cargo-tomlfmt &> /dev/null; then
- echo "Installing cargo-tomlfmt using cargo"
- cargo install cargo-tomlfmt
-fi
-
-ci/scripts/rust_fmt.sh
-ci/scripts/rust_clippy.sh
-ci/scripts/rust_toml_fmt.sh
+set -ex
+export RUSTDOCFLAGS="-D warnings -A rustdoc::private-intra-doc-links"
+cargo doc --document-private-items --no-deps --workspace
diff --git a/dev/rust_lint.sh b/dev/rust_lint.sh
index b1285cbc3f..1191071330 100755
--- a/dev/rust_lint.sh
+++ b/dev/rust_lint.sh
@@ -29,3 +29,4 @@ fi
ci/scripts/rust_fmt.sh
ci/scripts/rust_clippy.sh
ci/scripts/rust_toml_fmt.sh
+ci/scripts/rust_docs.sh