215 Commits

Author SHA1 Message Date
renovate[bot]
501842366c chore(deps): update cargo-semver-checks to v0.46.0 2026-01-23 08:56:45 +00:00
Ed Page
41f2803a67 chore: Update typos
This will unblock #16506
2026-01-14 12:33:08 -06:00
Weihang Lo
22fcb74074 chore(ci): report-timings to upload HTML report
This could help review the HTML report by download the artifacts.
2025-12-18 18:25:13 -05:00
Alan Somers
389962f710 Downgrade curl-sys to 0.4.83
With version 0.4.84, cargo was failing on FreeBSD 13.5 and 14.3 every
time, with errors like this:

```
    Updating crates.io index
error: failed to get `futures` as a dependency of package `tokio-file v0.11.0 (/tmp/cirrus-ci-build)`
Caused by:
  download of config.json failed
Caused by:
  failed to download from `https://index.crates.io/config.json`
Caused by:
  [60] SSL peer certificate or SSH remote key was not OK (SSL certificate OpenSSL verify result: unable to get local issuer certificate (20))
```

Fixes #16357
2025-12-11 11:12:50 -07:00
Eric Huss
5fd02fe317 Run clippy CI on more targets
This adds MacOS and Windows to the list of hosts for running the clippy
job. This is intended to prevent warnings from being added to the code
which happens from time to time.

This still doesn't have 100% coverage of all code/targets, but this
should cover the vast majority.
2025-12-04 07:17:16 -08:00
renovate[bot]
ea9e79fd43 chore(deps): update crate-ci/typos action to v1.40.0 2025-12-01 01:01:50 +00:00
Eric Huss
6cf360061e Update to mdbook 0.5
Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-051
2025-11-22 13:13:29 -08:00
Scott Schafer
6581a5da25 feat: Add a typos CI job 2025-11-12 10:39:43 -07:00
renovate[bot]
c6e6e5dd0a chore(deps): update cargo-semver-checks to v0.45.0 2025-11-01 16:44:42 +00:00
Weihang Lo
dab2ec888e chore(ci): unpin libc 2025-10-02 23:16:55 -04:00
renovate[bot]
1b10bfbfd8 chore(deps): update actions/checkout action to v5 2025-10-01 02:12:12 +00:00
Weihang Lo
b6d572b45d chore(ci): add rustfmt for docs job
Unclear why it wasn't missing before.

The line was added five years ago.
Seems it should be available.
https://github.com/actions/runner-images/blob/75ec4229/images/ubuntu/scripts/build/install-rust.sh#L19-L20

Maybe due to recent pin/unpin 1.89 issue?
https://github.com/actions/runner-images/commit/69c94f5b
2025-09-26 08:36:18 -04:00
renovate[bot]
f21311948b chore(deps): update cargo-semver-checks to v0.44.0 2025-09-21 04:51:16 +00:00
Ross Sullivan
49f0dcc343 chore: Skip check-version-bump ci job in forks 2025-09-13 00:10:16 +09:00
Weihang Lo
9c4007c6f4 chore(ci): ignore libc from renovate updates
We have downgraded this in rust-lang/cargo#15851
We should also let renovate ignore it.
2025-09-03 16:43:58 -07:00
Scott Schafer
022dc5b381 chore: Address most typos 2025-09-02 18:15:50 -06:00
Weihang Lo
15165cac21 Add Arm64 Windows CI jobs (#15790)
The `aarch64-pc-windows-msvc` target is on the path to being promoted to
Tier 1: <https://github.com/rust-lang/rfcs/pull/3817>

Adding Arm64 Windows runners will catch any potential issues in Cargo
before changes are merged in, instead of waiting for the Cargo submodule
to be updated.
2025-08-21 15:00:50 +00:00
Eric Huss
f8dc368fe3 Switch to using native mdbook fragment redirects
Mdbook recently gained the ability to redirect fragments. This removes
the embedded scripts to use this mechanism instead.
2025-08-18 14:21:36 -07:00
Weihang Lo
9614bc251b chore: remove x86_64-apple-darwin from CI and tests
RFC 3841 has merged, and x86_64-apple-darwin will be demoted to tier-2
in 1.90.0. In Cargo we usually run test against tier-1 platforms, so
x86_64-apple-darwin should be removed.
Also, that target platform is often the slowest one in CI,
we are happy to remove it to save us a couple of minutes.

https://rust-lang.github.io/rfcs/3841-demote-x86_64-apple-darwin.html
2025-08-12 16:02:16 -04:00
renovate[bot]
0d6aa033a1 chore(deps): update cargo-semver-checks to v0.43.0 2025-08-10 08:24:34 +00:00
Daniel Paoliello
0aaa4cb00c Add Arm64 Windows CI jobs 2025-07-30 10:14:17 -07:00
renovate[bot]
9b91ef09fe chore(deps): update cargo-semver-checks to v0.42.0 2025-07-05 16:08:44 +00:00
Weihang Lo
11e40ae867 test(trim-paths): verify Windows cdb works after trimmed
GitHub Actions has Windows SDK pre-installed,
so cdb should be available at that path always.

Additionally, this adds a new CI job for windows-msvc nightly toolchain
2025-06-02 08:10:24 -04:00
Weihang Lo
a5a9efcf72 chore: remove HTML comments and inline guide
Also make template lighter.

See
https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/pr.20template/with/521309075
2025-05-30 13:55:31 -04:00
Ed Page
5661fb89c1 chore(gh): Add new-lint template
Based on clippy's
2025-05-22 08:42:14 -05:00
Ed Page
b1bb014cdb CI: Require schema job to pass (#15504)
I'm not certain, but I do not believe it was intentional in
https://github.com/rust-lang/cargo/pull/15000 to allow the `schema` job
to fail. This adds it to the required passing list.
2025-05-07 20:15:03 +00:00
Eric Huss
c9261238cf CI: Require schema job to pass
I'm not certain, but I do not believe it was intentional in https://github.com/rust-lang/cargo/pull/15000 to allow the `schema` job to fail. This adds it to the required passing list.
2025-05-07 12:39:52 -07:00
renovate[bot]
19704b9496 chore(config): migrate config .github/renovate.json5 2025-05-07 12:01:16 -07:00
renovate[bot]
1a195abcd5 chore(deps): update cargo-semver-checks to v0.41.0 2025-04-22 17:55:40 +00:00
Weihang Lo
2080ac30df chore(ci): add aarch64 linux runner
Linux arm64 hosted runners is in public preview.
Enable and see if is is something we can have now.

setting `target.linker` is required for cross-compilation
on ARM64, so disable cross compilation tests for it.

https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/
2025-04-01 22:07:36 -07:00
renovate[bot]
251a078d4d chore(deps): update cargo-semver-checks to v0.40.0 2025-03-08 17:39:57 +00:00
Weihang Lo
4cde6f8129 chore(ci): start reporting outdated openssl
We're going to move away from openssl v1 to v3.
2025-02-25 11:45:41 -05:00
Ed Page
66d800d68b chore(ci): Auto-update cargo-semver-checks 2025-02-20 16:14:09 -06:00
Ed Page
9946566ce4 chore(ci): Update cargo-semver-checks 2025-02-20 16:08:12 -06:00
Eric Huss
19b5e2356c Move changelog to the cargo book
Due to rendering limits with GitHub's markdown renderer, we're moving
the changelog to the cargo book where it can be statically served under
our control.
2025-01-28 18:52:33 -08:00
Weihang Lo
e57a2f43c2 test: show that -Awarnings fails target info probing
This will be resolved in the next commit
2025-01-08 17:27:25 -05:00
Ed Page
876f17d46b chore(ci): Ensure JSON schema gets updated 2025-01-01 10:16:18 -06:00
Eric Huss
f18cbda5ab Limit release trigger to 0.* tags 2024-12-15 14:27:45 -08:00
Weihang Lo
feb398a442 fix(build-std): determine root crates by target spec std:bool
In rust-lang/cargo#14183 Cargo starts bailing out if the `metadata.std`
field in a target spec JSON is set to `false`.
This is problematic because std for some targets are actually buildable
even they've declared as std-unsupported.

This patch removes the hard error, and instead determines the required
root crates by the `metadata.std` field. That is to say, if a target
is explicitly declared as `std: false`, `-Zbuild-std` will build `core`
and `compiler-builtins` only, no `std` will be built.

This patch doesn't change the behavior of `-Zbuild-std` with explicit
crates set. For example `-Zbuild-std=std` will force building `std`.

See Zulip discussion:
https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/help.20debugging.20a.20docs.2Ers.20issue.20with.20a.20new.20cargo.20error
2024-12-05 23:15:21 -05:00
Ed Page
e808a85905 chore(ci): Bump cargo-semver-checks version 2024-11-29 11:03:36 -06:00
Weihang Lo
a951c95b94 chore: remove bors/homu comments 2024-11-20 10:40:10 -05:00
Jakub Beránek
eb9066a135 CI: make the lint-docs job required 2024-11-08 18:16:02 +01:00
Jakub Beránek
92cf8134bc Switch CI from bors to merge queue 2024-10-22 22:45:21 +02:00
Scott Schafer
449d6cb356 fix(renovate): Switch matchPackageNames to matchDepNames 2024-10-18 21:13:36 -06:00
Weihang Lo
96ef4e4e7d chore(deps): update embarkstudios/cargo-deny-action action to v2 2024-10-01 09:13:19 -04:00
Ed Page
023f4c66ca test: Remove completion tests
The tests are intended to spot check that shell completions are
registered correctly.  That is a low change, low risk area.  For shell
integration, we're relying on `clap_complete`s tests.
For our own candidates, we should test the candidate generation
directly, rather than end-to-end.

This reverts parts of commit e7ca9bec80, reversing
changes made to bd5f32bb1c.

Fixes #14545
2024-09-24 08:58:57 -05:00
shannmu
7b0b97789c ci: Install zsh, fish and elvish on ubuntu-lastest for the test and test_gitoxide jobs 2024-09-10 16:03:30 +08:00
Joe Neeman
90fef7a6aa Bump cargo-semver-checks in ci 2024-09-06 10:16:04 +07:00
Eric Huss
afe0b2de7a CI: Switch macos aarch64 to nightly
We will be promoting aarch64-apple-darwin to tier 1 soon via
https://github.com/rust-lang/rust/pull/128592. This updates our CI
so that aarch64-apple-darwin runs the full test suite on nightly to
keep this in-line with tier-1 support.

This also removes the x86_64 stable macos job and replaces it with
aarch64, mainly because aarch64 runs much faster, and presumably
x86_64 support will go away some day.
2024-08-09 18:08:28 -07:00
Weihang Lo
12d00dcf6f chore(ci): cargo-semver-checks to 0.32.0 2024-07-15 20:24:48 -04:00