Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci-bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
bootstrap:
name: Bootstrap
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- name: Install toolchain
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
check:
name: Check
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- name: Install toolchain
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt,clippy
Expand All @@ -51,6 +52,7 @@ jobs:
msrv:
name: Resolve MSRV
runs-on: ubuntu-24.04
timeout-minutes: 30
outputs:
rust-versions: ${{ steps.metadata.outputs.rust-versions }}
steps:
Expand All @@ -65,10 +67,12 @@ jobs:
name: Run tests
needs: msrv
strategy:
fail-fast: false
matrix:
os: [ ubuntu-24.04, macos-14, windows-2022 ]
rust-version: ${{ fromJson(needs.msrv.outputs.rust-versions) }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: Swatinem/rust-cache@v2
Expand All @@ -85,6 +89,7 @@ jobs:
required:
name: Required
runs-on: ubuntu-24.04
timeout-minutes: 30
if: ${{ always() }}
needs:
- check
Expand Down
2 changes: 1 addition & 1 deletion taplo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

exclude = ["target"]
exclude = ["target/**"]
include = ["Cargo.toml", "**/*.toml"]

[formatting]
Expand Down
14 changes: 14 additions & 0 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ impl CommandLint {
run_command(make_taplo_cmd(self.fix));
run_command(make_typos_cmd());
run_command(make_hawkeye_cmd(self.fix));
run_command(make_doc_cmd());
}
}

Expand Down Expand Up @@ -192,6 +193,19 @@ fn make_clippy_cmd(fix: bool) -> StdCommand {
cmd
}

fn make_doc_cmd() -> StdCommand {
let mut cmd = find_command("cargo");
cmd.env("RUSTDOCFLAGS", "-D warnings --cfg docsrs");
cmd.args([
"+nightly",
"doc",
"--workspace",
"--all-features",
"--no-deps",
]);
cmd
}

fn make_hawkeye_cmd(fix: bool) -> StdCommand {
ensure_installed("hawkeye", "hawkeye");
let mut cmd = find_command("hawkeye");
Expand Down