1097 Commits

Author SHA1 Message Date
Scott Schafer
66991b5a33
chore: Bump cargo-util-schemas to 0.8.0 2025-04-04 22:44:24 -06:00
Weihang Lo
b955cd1822
chore(ci): restore cargo-util semver check 2025-04-04 08:05:43 -07:00
Eric Huss
be781458a9 Bump versions due to MSRV update 2025-04-03 07:11:48 -07:00
renovate[bot]
fc88578277
chore(deps): update msrv (1 version) to v1.86 2025-04-03 12:07:38 +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
Weihang Lo
4e8014f4be
feat(schemas): add PackageList message schema
This is is for `cargo package --list` in JSON format
2025-03-25 23:02:37 -04:00
pudongair
6c7c360dec chore: fix some typos
Signed-off-by: pudongair <744355276@qq.com>
2025-03-19 21:05:18 +08:00
bjorn3
c340cd902d Bump home version to 0.5.12 2025-03-13 21:37:39 +01:00
bjorn3
9e74cce829 Redox OS is part of the unix family 2025-03-13 21:19:46 +01:00
Eric Huss
fae82d8efa Update to pulldown-cmark 0.13 API changes 2025-03-01 11:13:42 -08:00
Arlo Siemsen
5f833db69b feat: Add SBOM pre-cursor files
Adds a new option `build.sbom` that adds generation of a JSON file
containing dependency information alongside compiled artifacts.
2025-02-26 14:57:14 -06:00
Eric Huss
10175b1760
chore: semver-check build-rs against beta channel (#15223)
### What does this PR try to resolve?

This should have been restored when 1.84 was out,
but nobody remembered.
2025-02-23 14:38:42 +00:00
Weihang Lo
e820df0ca8
chore: sever-check build-rs against beta channel 2025-02-22 10:36:48 -05:00
Weihang Lo
80331b1ea6
chore: dont check cargo-util semver until 1.86 is released
This fixes the current confusing failures in our CI pipeline:

* https://github.com/rust-lang/cargo/actions/runs/13465687015/job/37630870984
* https://github.com/rust-lang/cargo/actions/runs/13469881475/job/37642079118

CI job failed because of this major SemVer breakage:

```diff
-pub fn strip_prefix_canonical<P: AsRef<Path>>(
-    path: P,
-    base: P,
+pub fn strip_prefix_canonical(
+    path: impl AsRef<Path>,
+    base: impl AsRef<Path>,
 ) -> Result<PathBuf, std::path::StripPrefixError> {
```

While cargo-util does have that change violating SemVer,
it is unlikely people use it with turbo-fish syntax.
And cargo-util is essentially for internal use.

See:

* https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/check-version-bump.20failure
* https://forge.rust-lang.org/policies/crate-ownership.html#internal-use
2025-02-22 10:32:32 -05:00
Ed Page
f5ec77b18e docs(utils): Clarify expected state of name for make_dep_path
For index entries, the caller must lowercase the name.
2025-02-21 08:25:23 -06:00
Ed Page
05228f76f4 chore(ci): Check against beta first
Most breaking changes should be against beta and it would be good to
have the context of whether we deviated from beta before checking
against stable.
2025-02-21 09:50:36 -06:00
Ed Page
f035814fe2 chore(ci): Visually group output in Github 2025-02-21 09:13:36 -06:00
Ed Page
88f858a5b5 refactor(bump): Visual group related operations 2025-02-21 09:11:33 -06:00
Ed Page
b4dee5dcf9 chore: Bump versions 2025-02-20 15:47:07 -06:00
renovate[bot]
c30d4f9293
chore(deps): update msrv (1 version) to v1.85 2025-02-20 19:37:56 +00:00
Arlo Siemsen
44de80f89c fix: build warning in windows_reserved_names_are_allowed 2025-02-19 10:59:50 -06:00
Samuel Moelius
65521c3ba0
Typo: "explicitally" -> "explicitly" 2025-02-18 19:06:15 -05:00
Ed Page
d5b5074024 refactor(schema): Make TomlPackage defaultable 2025-02-10 14:29:15 -06:00
Ed Page
6ec8da96f4 fix(schema): Mark package.name as optional 2025-02-10 14:29:15 -06:00
Weihang Lo
f7c9066169
fix: align first line of unordered list with following
This looks more nature.
Most of other popular softwares follow the same style.
For example, git-merge, tar, and bash.
2025-02-09 10:15:42 -05:00
MarcoIeni
54f97e28fd
allow windows reserved names in CI 2025-02-03 17:51:51 +01:00
anteater
8da5ba4f1c
Remove unsafe by using LazyLock 2025-01-24 15:14:15 +00:00
Ed Page
b75783a923 chore: Bump versions 2025-01-09 15:18:56 -06:00
renovate[bot]
7ee43a58ec
chore(deps): update msrv (1 version) to v1.84 2025-01-09 19:15:56 +00:00
Weihang Lo
a4c0d39826
fix: emit warnings as warnings when learning rust target info (#15036)
### What does this PR try to resolve?

This is a horrible hack,
which lets the rustc invocation for learning target info always emit
warnings as warnings.
But at least it unblocks people who pass `-Awarnings` via RUSTFLAGS.

A long-term solution is a better interface
between build systems and the compiler.
See the discussion on Zulip:

https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Improving.20communication.20interface.20between.20cargo.2Frustc

Fixes rust-lang/cargo#8010

### How should we test and review this PR?

Ensure `CFG_DISABLE_CROSS_TESTS` is not set,
and run `cargo t --test testsuite
always_emit_warnings_as_warnings_when_learning_target_info`

This also additionally adds `wasm32-unknown-unknown` target to Cargo's
CI.

### Additional information
2025-01-08 23:37:05 +00:00
Weihang Lo
4a88f924c6
test: extract checking installed target to a function 2025-01-08 17:27:25 -05:00
Ed Page
6fe36c20ad fix(schemas): Make lints.workspace not required 2025-01-08 11:26:39 -06:00
Ed Page
e6114c3395 fix(schema): Include lints sub-tables in packages
This was done by upgrading schemars.  Hard to tell what else was changed
because of the noise from the other changes in the layout.

Fixes #15030
2025-01-08 11:26:39 -06:00
Weihang Lo
4a1e2ea539
fix(schemas): Fix 'metadata' JSON Schema (#15033)
Instead of allowing any type in metadata, we were specifying fields like
`"string": "<any string>"`.

Found this when looking into #15030

<!--
Thanks for submitting a pull request 🎉! Here are some tips for you:

* If this is your first contribution, read "Cargo Contribution Guide"
first:
  https://doc.crates.io/contrib/
* Run `cargo fmt --all` to format your code changes.
* Small commits and pull requests are always preferable and easy to
review.
* If your idea is large and needs feedback from the community, read how:
  https://doc.crates.io/contrib/process/#working-on-large-features
* Cargo takes care of compatibility. Read our design principles:
  https://doc.crates.io/contrib/design.html
* When changing help text of cargo commands, follow the steps to
generate docs:

https://github.com/rust-lang/cargo/tree/master/src/doc#building-the-man-pages
* If your PR is not finished, set it as "draft" PR or add "WIP" in its
title.
* It's ok to use the CI resources to test your PR, but please don't
abuse them.

### What does this PR try to resolve?

Explain the motivation behind this change.
A clear overview along with an in-depth explanation are helpful.

You can use `Fixes #<issue number>` to associate this PR to an existing
issue.

### How should we test and review this PR?

Demonstrate how you test this change and guide reviewers through your
PR.
With a smooth review process, a pull request usually gets reviewed
quicker.

If you don't know how to write and run your tests, please read the
guide:
https://doc.crates.io/contrib/tests

### Additional information

Other information you want to mention in this PR, such as prior arts,
future extensions, an unresolved problem, or a TODO list.
-->
2025-01-08 19:05:19 +00:00
Jacob Finkelman
06811d8594 manual impl of hash 2025-01-08 17:35:54 +00:00
Jacob Finkelman
d8b7c072c5 shortening the comment 2025-01-08 17:35:42 +00:00
Ed Page
e48257d3c8 fix(schemas): Fix 'metadata' JSON Schema
Found this when looking into #15030
2025-01-08 11:26:27 -06:00
Ed Page
e8f3e5e0f2 chore(schema): Bump version 2025-01-08 11:26:27 -06:00
Eric Huss
e6ecef6cc8 Remove condition on RUSTUP_WINDOWS_PATH_ADD_BIN
This is no longer needed since rustup 1.27.1 which changed the default
to false.
2025-01-04 11:49:20 -08:00
Ed Page
34d0bcb3e9 feat(test); Add arg_line support to Execs 2024-12-18 11:56:37 -06:00
Ed Page
729776b589 fix(schema): Correct and update the JSON Schema
Fixes #14999
2025-01-01 10:14:31 -06:00
renovate[bot]
5f42cf2873
chore(deps): update alpine docker tag to v3.21 2025-01-01 02:26:01 +00:00
Weihang Lo
4c06c57d0d
refactor(cargo-util): one generic for each argument
So `path` and `base` are able to accept different types
2024-12-31 16:21:43 -05:00
Weihang Lo
562e83a443
test: track caller for .crate file publish verification
This was found during some recent works around `cargo package`.
The purpose of it is showing the caller's line number when panicking.
2024-12-30 09:50:04 -05:00
Weihang Lo
0921264bc5
test: make path arguments more generic and flexible
So we don't need to `p.to_str().unwrap()`
and are able to pass different types for each argument
2024-12-24 10:33:21 -05:00
Eric Huss
20ec18a3ff Update home changelog 2024-12-15 14:22:53 -08:00
Eric Huss
014378f8c0 Clarify status of home_dir
Users should be using the standard library `home_dir` instead of this
crate.
2024-12-15 14:20:56 -08:00
Ed Page
4e5af28150 refactor(schema): Group TomlManifest fields to clarify requires_package
I found a bug in the manifest parser and figured this would help make it
more obvious.

Since I was already changing the order, I figure I'm make things a
little more logical (user-facing first, implementtion details later)
2024-12-13 10:31:53 -06:00
Ed Page
20870cea81 feat(test): Allow custom index lines 2024-12-12 11:50:54 -06:00
Ed Page
4f68299e27 fix(test)!: Clarify purpose of Package::invalid_index_line 2024-12-12 11:50:54 -06:00