20610 Commits

Author SHA1 Message Date
Scott Schafer
eec0473bea
refactor: Make get_span return the key and value span 2025-09-02 15:43:37 -06:00
Ed Page
c8a15f324f fix(publish): Don't generate final artifacts 2025-09-02 15:29:04 -05:00
Ed Page
474598e3d7 refactor(package): Make steps explicit 2025-09-02 15:15:52 -05:00
Ed Page
3f857e9dd4 test(publish): Show the build-dir behavior 2025-09-02 13:21:35 -05:00
Ed Page
67dc504f94 refactor(manifest): Simplify frontmatter editing 2025-09-02 10:50:26 -05:00
Ed Page
e9c744b8de refactor(frontmatter): Track spans
This will make error reporting easier as well as editing
2025-09-02 10:50:26 -05:00
Ed Page
3184f03ef3 refactor(frontmatter): Switch to winnow 2025-09-02 10:50:06 -05:00
Ed Page
8745e27805 refactor(frontmatter): Extract strip_ws_lines 2025-09-02 10:49:46 -05:00
Ed Page
84cc6ceba7 refactor(frontmatter): Publicly expose strip_shebang 2025-09-02 10:49:46 -05:00
Ed Page
4483c29ca4 refactor(frontmatter): Pull out as a dedicated mod 2025-09-02 10:49:44 -05:00
Weihang Lo
7c4e67c1d4
test(script): Switch frontmatter tests to end-to-end (#15899)
### What does this PR try to resolve?

For frontmatter parser, we almost exclusively use unit tests.

This switches the rustc ui tests we've copied over to being cargo ui
tests but in a way that makes it relatively easy to diff against rustc
and see the state of the two and makes it easier to update.

This will help as I work to improve the errors reported by cargo to
align with rustc in quality

As part of this, I made the source file auto-updating whenever new tests
get copied over.

### How to test and review this PR?

### Notes

Note: the tests are a little ahead of rustc atm, being pulled from one
of my branches that I've not yet pushed because its blocked on another
PR
2025-09-02 14:42:50 +00:00
Weihang Lo
5e435eff9f
chore: fix some typos and grammar (#15905)
### What does this PR try to resolve?
Fixed some typos and small grammar things I found while poking around
the registry implementation.

### How to test and review this PR?

Shouldn't need any special testing.
2025-09-02 13:20:07 +00:00
Sam Privett
4740a2e4a9 Fix some typos found while digging around the registry implementation 2025-09-01 10:41:42 -07:00
Weihang Lo
e24f3ff524
Update dependencies (#15904)
This updates all semver-compatible dependencies.

Updating anstyle-query v1.1.3 -> v1.1.4
Updating anstyle-svg v0.1.8 -> v0.1.10
Updating anstyle-wincon v3.0.9 -> v3.0.10
Updating anyhow v1.0.98 -> v1.0.99
Updating bitflags v2.9.1 -> v2.9.3
Updating camino v1.1.10 -> v1.1.12
Updating cc v1.2.31 -> v1.2.35
Updating cfg-if v1.0.1 -> v1.0.3
Updating clap v4.5.43 -> v4.5.46
Updating clap_builder v4.5.43 -> v4.5.46
Updating clap_complete v4.5.56 -> v4.5.57
Updating crc32fast v1.4.2 -> v1.5.0
Updating crunchy v0.2.3 -> v0.2.4
Updating curl v0.4.48 -> v0.4.49
Updating curl-sys v0.4.82+curl-8.14.1 -> v0.4.83+curl-8.15.0 Updating
deranged v0.4.0 -> v0.5.3
Updating dyn-clone v1.0.19 -> v1.0.20
Updating escargot v0.5.14 -> v0.5.15
Updating filetime v0.2.25 -> v0.2.26
Adding find-msvc-tools v0.1.0
Updating form_urlencoded v1.2.1 -> v1.2.2
Updating gix-actor v0.35.2 -> v0.35.4
Updating gix-date v0.10.3 -> v0.10.5
Updating gix-features v0.43.0 -> v0.43.1
Updating gix-fs v0.16.0 -> v0.16.1
Updating gix-object v0.50.0 -> v0.50.2
Updating gix-path v0.10.19 -> v0.10.20
Updating gix-ref v0.53.0 -> v0.53.1
Updating h2 v0.4.11 -> v0.4.12
Updating hashbrown v0.15.4 -> v0.15.5
Updating hyper v1.6.0 -> v1.7.0
Updating hyper-util v0.1.15 -> v0.1.16
Updating idna v1.0.3 -> v1.1.0
Updating indexmap v2.10.0 -> v2.11.0
Updating io-uring v0.7.8 -> v0.7.10
Updating is_executable v1.0.4 -> v1.0.5
Updating jobserver v0.1.33 -> v0.1.34
Updating libc v0.2.174 -> v0.2.175
Updating libredox v0.1.3 -> v0.1.9
Updating memmap2 v0.9.5 -> v0.9.8
Updating openssl-src v300.5.0+3.5.0 -> v300.5.2+3.5.2 Updating
percent-encoding v2.3.1 -> v2.3.2
Updating pest v2.8.0 -> v2.8.1
Updating pest_derive v2.8.0 -> v2.8.1
Updating pest_generator v2.8.0 -> v2.8.1
Updating pest_meta v2.8.0 -> v2.8.1
Updating plist v1.7.2 -> v1.7.4
Updating potential_utf v0.1.2 -> v0.1.3
Updating proc-macro2 v1.0.95 -> v1.0.101
Updating quick-xml v0.37.5 -> v0.38.3
Updating rayon v1.10.0 -> v1.11.0
Updating rayon-core v1.12.1 -> v1.13.0
Updating redox_syscall v0.5.13 -> v0.5.17
Updating regex v1.11.1 -> v1.11.2
Updating regex-automata v0.4.9 -> v0.4.10
Updating regex-syntax v0.8.5 -> v0.8.6
Updating reqwest v0.12.22 -> v0.12.23
Updating rustc-demangle v0.1.25 -> v0.1.26
Updating rustls v0.23.29 -> v0.23.31
Updating rustversion v1.0.21 -> v1.0.22
Updating serde-untagged v0.1.7 -> v0.1.8
Updating serde_json v1.0.142 -> v1.0.143
Updating socket2 v0.5.10 -> v0.6.0
Updating syn v2.0.104 -> v2.0.106
Updating tempfile v3.20.0 -> v3.21.0
Updating terminal_size v0.4.2 -> v0.4.3
Updating thiserror v2.0.12 -> v2.0.16
Updating thiserror-impl v2.0.12 -> v2.0.16
Updating thread_local v1.1.8 -> v1.1.9
Updating time v0.3.41 -> v0.3.42
Updating time-core v0.1.4 -> v0.1.5
Updating time-macros v0.2.22 -> v0.2.23
Updating tinyvec v1.9.0 -> v1.10.0
Updating tokio v1.46.1 -> v1.47.1
Updating tokio-util v0.7.15 -> v0.7.16
Updating toml_edit v0.23.3 -> v0.23.4
Updating tracing-attributes v0.1.28 -> v0.1.30
Updating tracing-core v0.1.33 -> v0.1.34
Updating url v2.5.4 -> v2.5.7
Updating wasi v0.14.2+wasi-0.2.4 -> v0.14.3+wasi-0.2.4 Removing winapi
v0.3.9
Removing winapi-i686-pc-windows-gnu v0.4.0
Updating winapi-util v0.1.9 -> v0.1.10
Removing winapi-x86_64-pc-windows-gnu v0.4.0
Updating winnow v0.7.12 -> v0.7.13
Adding wit-bindgen v0.45.0
Removing wit-bindgen-rt v0.39.0
Updating zerovec v0.11.2 -> v0.11.4
2025-09-01 17:18:52 +00:00
Eric Huss
6315fa08e1 Update dependencies
This updates all semver-compatible dependencies.

Updating anstyle-query v1.1.3 -> v1.1.4
Updating anstyle-svg v0.1.8 -> v0.1.10
Updating anstyle-wincon v3.0.9 -> v3.0.10
Updating anyhow v1.0.98 -> v1.0.99
Updating bitflags v2.9.1 -> v2.9.3
Updating camino v1.1.10 -> v1.1.12
Updating cc v1.2.31 -> v1.2.35
Updating cfg-if v1.0.1 -> v1.0.3
Updating clap v4.5.43 -> v4.5.46
Updating clap_builder v4.5.43 -> v4.5.46
Updating clap_complete v4.5.56 -> v4.5.57
Updating crc32fast v1.4.2 -> v1.5.0
Updating crunchy v0.2.3 -> v0.2.4
Updating curl v0.4.48 -> v0.4.49
Updating curl-sys v0.4.82+curl-8.14.1 -> v0.4.83+curl-8.15.0
Updating deranged v0.4.0 -> v0.5.3
Updating dyn-clone v1.0.19 -> v1.0.20
Updating escargot v0.5.14 -> v0.5.15
Updating filetime v0.2.25 -> v0.2.26
Adding find-msvc-tools v0.1.0
Updating form_urlencoded v1.2.1 -> v1.2.2
Updating gix-actor v0.35.2 -> v0.35.4
Updating gix-date v0.10.3 -> v0.10.5
Updating gix-features v0.43.0 -> v0.43.1
Updating gix-fs v0.16.0 -> v0.16.1
Updating gix-object v0.50.0 -> v0.50.2
Updating gix-path v0.10.19 -> v0.10.20
Updating gix-ref v0.53.0 -> v0.53.1
Updating h2 v0.4.11 -> v0.4.12
Updating hashbrown v0.15.4 -> v0.15.5
Updating hyper v1.6.0 -> v1.7.0
Updating hyper-util v0.1.15 -> v0.1.16
Updating idna v1.0.3 -> v1.1.0
Updating indexmap v2.10.0 -> v2.11.0
Updating io-uring v0.7.8 -> v0.7.10
Updating is_executable v1.0.4 -> v1.0.5
Updating jobserver v0.1.33 -> v0.1.34
Updating libc v0.2.174 -> v0.2.175
Updating libredox v0.1.3 -> v0.1.9
Updating memmap2 v0.9.5 -> v0.9.8
Updating openssl-src v300.5.0+3.5.0 -> v300.5.2+3.5.2
Updating percent-encoding v2.3.1 -> v2.3.2
Updating pest v2.8.0 -> v2.8.1
Updating pest_derive v2.8.0 -> v2.8.1
Updating pest_generator v2.8.0 -> v2.8.1
Updating pest_meta v2.8.0 -> v2.8.1
Updating plist v1.7.2 -> v1.7.4
Updating potential_utf v0.1.2 -> v0.1.3
Updating proc-macro2 v1.0.95 -> v1.0.101
Updating quick-xml v0.37.5 -> v0.38.3
Updating rayon v1.10.0 -> v1.11.0
Updating rayon-core v1.12.1 -> v1.13.0
Updating redox_syscall v0.5.13 -> v0.5.17
Updating regex v1.11.1 -> v1.11.2
Updating regex-automata v0.4.9 -> v0.4.10
Updating regex-syntax v0.8.5 -> v0.8.6
Updating reqwest v0.12.22 -> v0.12.23
Updating rustc-demangle v0.1.25 -> v0.1.26
Updating rustls v0.23.29 -> v0.23.31
Updating rustversion v1.0.21 -> v1.0.22
Updating serde-untagged v0.1.7 -> v0.1.8
Updating serde_json v1.0.142 -> v1.0.143
Updating socket2 v0.5.10 -> v0.6.0
Updating syn v2.0.104 -> v2.0.106
Updating tempfile v3.20.0 -> v3.21.0
Updating terminal_size v0.4.2 -> v0.4.3
Updating thiserror v2.0.12 -> v2.0.16
Updating thiserror-impl v2.0.12 -> v2.0.16
Updating thread_local v1.1.8 -> v1.1.9
Updating time v0.3.41 -> v0.3.42
Updating time-core v0.1.4 -> v0.1.5
Updating time-macros v0.2.22 -> v0.2.23
Updating tinyvec v1.9.0 -> v1.10.0
Updating tokio v1.46.1 -> v1.47.1
Updating tokio-util v0.7.15 -> v0.7.16
Updating toml_edit v0.23.3 -> v0.23.4
Updating tracing-attributes v0.1.28 -> v0.1.30
Updating tracing-core v0.1.33 -> v0.1.34
Updating url v2.5.4 -> v2.5.7
Updating wasi v0.14.2+wasi-0.2.4 -> v0.14.3+wasi-0.2.4
Removing winapi v0.3.9
Removing winapi-i686-pc-windows-gnu v0.4.0
Updating winapi-util v0.1.9 -> v0.1.10
Removing winapi-x86_64-pc-windows-gnu v0.4.0
Updating winnow v0.7.12 -> v0.7.13
Adding wit-bindgen v0.45.0
Removing wit-bindgen-rt v0.39.0
Updating zerovec v0.11.2 -> v0.11.4
2025-09-01 09:47:14 -07:00
Weihang Lo
d2a66d6910
feat: Don't stop at first error when emitting lints and warnings (#15889)
While emitting warnings, if `cargo` encounters a critical warning or an
error while linting, it returns early, potentially before all packages
could emit their warnings or be linted. This could make it so users have
to run a `cargo` command more than once before seeing all of the
relevant output. Beyond this, having an error caused by a lint be a
"stop the world" event seems wrong, as it (currently) doesn't inhibit
outputting other warnings or linting other packages.

To address this, I made it so that `cargo` waits until the end of
`emit_warnings` to return an error if one was encountered. To keep the
cause of the error the same as before, `cargo` saves off the first error
it encounters, and returns it at the end.
2025-09-01 00:01:55 +00:00
Weihang Lo
51d077c582
fix(cli): Show the bad manifest path (#15896)
### What does this PR try to resolve?

In most cases, this will just be what you passed on the command line.
Even when its not, that likely represents a programmer error.

I mostly did this to help see what was the cause of a test failure.

### How to test and review this PR?
2025-08-29 21:42:27 +00:00
Ed Page
a7612a80f9
chore(deps): update rust crate tracing-subscriber to v0.3.20 [security] (#15898)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [tracing-subscriber](https://tokio.rs)
([source](https://redirect.github.com/tokio-rs/tracing)) |
workspace.dependencies | patch | `0.3.19` -> `0.3.20` |

### GitHub Vulnerability Alerts

####
[GHSA-xwfj-jgwm-7wp5](https://redirect.github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5)

### Impact

Previous versions of tracing-subscriber were vulnerable to ANSI escape
sequence injection attacks. Untrusted user input containing ANSI escape
sequences could be injected into terminal output when logged,
potentially allowing attackers to:

- Manipulate terminal title bars
- Clear screens or modify terminal display
- Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found
in terminal emulators that enabled an attacker to use ANSI escape
sequences via logs to exploit vulnerabilities in the terminal emulator.

### Patches

`tracing-subscriber` version 0.3.20 fixes this vulnerability by escaping
ANSI control characters in when writing events to destinations that may
be printed to the terminal.

### Workarounds

Avoid printing logs to terminal emulators without escaping ANSI control
sequences.

### References

https://www.packetlabs.net/posts/weaponizing-ansi-escape-sequences/

### Acknowledgments

We would like to thank [zefr0x](http://github.com/zefr0x) who
responsibly reported the issue at `security@tokio.rs`.

If you believe you have found a security vulnerability in any tokio-rs
project, please email us at `security@tokio.rs`.

---

### Release Notes

<details>
<summary>tokio-rs/tracing (tracing-subscriber)</summary>

###
[`v0.3.20`](https://redirect.github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.20):
tracing-subscriber 0.3.20

[Compare
Source](https://redirect.github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.19...tracing-subscriber-0.3.20)

**Security Fix**: ANSI Escape Sequence Injection (CVE-TBD)

#### Impact

Previous versions of tracing-subscriber were vulnerable to ANSI escape
sequence injection attacks. Untrusted user input containing ANSI escape
sequences could be injected into terminal output when logged,
potentially allowing attackers to:

- Manipulate terminal title bars
- Clear screens or modify terminal display
- Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found
in terminal emulators that enabled an attacker to use ANSI escape
sequences via logs to exploit vulnerabilities in the terminal emulator.

#### Solution

Version 0.3.20 fixes this vulnerability by escaping ANSI control
characters in when writing events to destinations that may be printed to
the terminal.

#### Affected Versions

All versions of tracing-subscriber prior to 0.3.20 are affected by this
vulnerability.

#### Recommendations

Immediate Action Required: We recommend upgrading to tracing-subscriber
0.3.20 immediately, especially if your application:

- Logs user-provided input (form data, HTTP headers, query parameters,
etc.)
- Runs in environments where terminal output is displayed to users

#### Migration

This is a patch release with no breaking API changes. Simply update your
Cargo.toml:

```toml
[dependencies]
tracing-subscriber = "0.3.20"
```

#### Acknowledgments

We would like to thank [zefr0x](http://github.com/zefr0x) who
responsibly reported the issue at `security@tokio.rs`.

If you believe you have found a security vulnerability in any tokio-rs
project, please email us at `security@tokio.rs`.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/rust-lang/cargo).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS44Mi43IiwidXBkYXRlZEluVmVyIjoiNDEuODIuNyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
2025-08-29 21:32:02 +00:00
Ed Page
57c97cc190 test(script): Switch frontmatter tests to end-to-end
This will make it easier to validate error improvements I'm working on
as well as make it easier to update from rust-lang/rust
2025-08-29 16:11:59 -05:00
Ed Page
79b6548c13 test(script): Pull out test mod 2025-08-29 16:11:59 -05:00
renovate[bot]
5b1ac17c75
chore(deps): update rust crate tracing-subscriber to v0.3.20 [security] 2025-08-29 20:57:11 +00:00
Ed Page
db6891f244 fix(cli): Show the bad manifest path
In most cases, this will just be what you passed on the command line.
Even when its not, that likely represents a programmer error.

I mostly did this to help see what was the cause of a test failure.
2025-08-29 15:42:44 -05:00
Scott Schafer
19fb2c007e
feat: Don't stop at first error when emitting lints and warnings 2025-08-26 19:08:31 -06:00
Weihang Lo
a6c58d4305
test: avoid hardcoded target spec json (#15880)
Read a real target spec JSON so we no longer need to hardcode
a target spec JSON here.
Cargo itself should not care about the spec schema.

Let's stop bothering compiler contributors.

* https://github.com/rust-lang/rust/pull/144443
* https://github.com/rust-lang/rust/pull/145764#issuecomment-3216104449
* [#t-compiler > Is it possible to add a commit to a submodule? @
💬](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Is.20it.20possible.20to.20add.20a.20commit.20to.20a.20submodule.3F/near/535865215)
2025-08-26 23:05:12 +00:00
Weihang Lo
2c2e6836c9
test(add): Cover some frontmatter corner cases (#15886)
### What does this PR try to resolve?

When working with the frontmatter parser, I identified some corner cases
that we should cover.

I cannot think of a programmatic way to require escaping when going from
no frontmatter to a frontmatter or to require more escaping than is
already present.

### How to test and review this PR?
2025-08-26 21:08:12 +00:00
Ed Page
b54b92cc5f test(add): Ensure an empty frontmatter is handled properly
There are corner cases with empty frontmatters, so I wanted to ensure
this case works now and going forward
2025-08-26 15:12:19 -05:00
Ed Page
865dfe26d1 test(add): Ensure escaping is preserved
I cannot think of a programmatic way to require escaping when going from no frontmatter to a frontmatter
or to require more escaping than is already present.
2025-08-26 15:09:44 -05:00
Ed Page
0bfd820f83
Add more context to publish-failed error message (#15879)
## What does this PR try to resolve?

This PR fixes issue #15754 where workspace publish failures provided
non-actionable error messages. Previously, when publishing a workspace
failed (due to rate limiting or other errors), users only saw generic
errors like `[ERROR] failed to publish to registry` without knowing
which package failed or what packages remained to be published.

## How to test and review this PR?

**Testing**: Run `cargo test workspace_publish_rate_limit_error` to see
the improved behavior, then `cargo test publish` to ensure all tests
pass.

**Review**:
- **Commit 1**: Adds test demonstrating current problematic behavior
- **Commit 2**: Implements fix and updates test to expect improved
output

The fix transforms error messages from generic `failed to publish to
registry` to actionable `failed to publish 'package_a' v0.1.0; the
following crates have not been published yet: package_b v0.1.0,
package_c v0.1.0`. This improvement applies consistently across all
publish error scenarios, giving users clear information about what went
wrong and what remains to be done.
2025-08-26 16:39:05 +00:00
Ojus Chugh
d2a6dcb43e fix(publish): Show remaining packages to be published 2025-08-25 14:45:02 -05:00
Ojus Chugh
f36cb83e98 fix(publish): Report which package failed to publish 2025-08-25 14:44:29 -05:00
Ojus Chugh
688ec9e9ef test(publish): Add test demonstrating error messages during workspace publish rate limiting 2025-08-25 14:38:07 -05:00
Weihang Lo
56f44bb212
test: avoid hardcoded target spec json
Read a real target spec JSON so we no longer need to hardcode
a target spec JSON here.
Cargo itself should not care about the spec schema.

Let's stop bothering compiler contributors.
2025-08-23 22:26:08 -04:00
Weihang Lo
623d536836
test(frontmatter): Match test updates in rustc (#15878)
### What does this PR try to resolve?

Sync our tests with rustc.

See rust-lang/rust#145751, rust-lang/rust#142032

### How to test and review this PR?
2025-08-22 19:05:52 +00:00
Ed Page
61cebf5c56 test(frontmatter): Match test updates in rustc
See rust-lang/rust#145751, rust-lang/rust#142032
2025-08-22 09:48:39 -05:00
Ed Page
12fa1daac8
chore: fix some typos in comment (#15877)
### What does this PR try to resolve?

fix some typos in comment

### How to test and review this PR?

No need.
2025-08-22 13:37:21 +00:00
xihuwenhua
e235d04c94 chore: fix some typos in comment
Signed-off-by: xihuwenhua <xihuwenhua@outlook.com>
2025-08-22 14:40:12 +08: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
Weihang Lo
4434ed8a2a
suggest workspace hints for boolean dependencies (#15507)
### What does this PR try to resolve?
via issue #15505, Cargo currently errors on
```toml
[dependencies]
crc32fast = true
```
with a message about `expected a version string or a detailed
dependency` It doesn’t hint that you can depend on a workspace member.
This PR updates `cargo` so that when you write dep = true, the error
also suggests:
```toml
dep = { workspace = true }
dep.workspace = true
```

### How should we test and review this PR?
In a workspace crate’s Cargo.toml, add
```toml
[dependencies]
crc32fast = true
```
Run `cargo build` and you should see the enhanced error with the two
workspace hints.

### Additional information

Regarding support for int/float, we only need a special case for boolean
because they’re the only values that get the `workspace hint`.
Everything else just uses the normal detailed dependency error
2025-08-21 14:31:55 +00:00
Weihang Lo
c0396feaa8
make UnitGenerator public in cargo-as-a-library (#15873)
### What does this PR try to resolve?

This PR makes `UnitGenerator` public for experimenting with unit graph
generation in cargo plumbing commands.

See https://github.com/crate-ci/cargo-plumbing/issues/39

### How to test and review this PR?

Verify that `UnitGenerator` is available when using cargo-as-a-library
2025-08-21 13:01:18 +00:00
Vito Secona
e633ba3adb refactor: make UnitGenerator public 2025-08-21 19:09:23 +07:00
Weihang Lo
81db0af861
Linting system (#15865)
This PR is just a few small improvements to the linting system.
2025-08-21 01:45:16 +00:00
Scott Schafer
069723ebff
fix(unknown_lints): Make emitted_source come before other groups 2025-08-19 16:19:40 -06:00
Scott Schafer
5ac9eb0a58
refactor(lints): Create emitted_source helper function 2025-08-19 16:19:40 -06:00
Scott Schafer
01a270f402
refactor: Add a helper for telling if a level is an error 2025-08-19 16:19:40 -06:00
Samuel Onoja
5dd597b621
impl workspace hint for boolean dependencies
hint for only bad dependency true literal and rename unit test to match
2025-08-19 18:15:32 +01:00
Samuel Onoja
7e78c54630
initial test commit 2025-08-19 18:15:32 +01:00
Weihang Lo
af9f4f677a
docs: add back src/doc README.md 2025-08-18 18:32:38 -04:00
Weihang Lo
974efef192
docs(contrib): polish documentation guide and make it a chapter 2025-08-18 18:32:37 -04:00
Weihang Lo
bfc0a59ebe
docs(contrib): move docs building process to contributor guide 2025-08-18 18:25:37 -04:00
Ed Page
b2c0aea98d
Switch to using native mdbook fragment redirects (#15861)
Mdbook recently gained the ability to redirect fragments. This removes
the embedded scripts to use this mechanism instead.
2025-08-18 21:49:40 +00:00