Merge branch 'master' into dependabot/github_actions/taiki-e/install-action-2.49.11

This commit is contained in:
Rob Ede 2025-03-08 17:31:30 +00:00 committed by GitHub
commit 64215bb0d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 2931 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
Cargo.lock
target/
guide/build/
/gh-pages

2915
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@
## Unreleased
- Fix panic in test server.
- Minimum supported Rust version (MSRV) is now 1.71.
## 2.5.0

View File

@ -123,7 +123,9 @@ impl TestServerHandle {
/// Connect to server, returning a Tokio `TcpStream`.
pub fn connect(&self) -> io::Result<TcpStream> {
TcpStream::from_std(net::TcpStream::connect(self.addr)?)
let stream = net::TcpStream::connect(self.addr)?;
stream.set_nonblocking(true)?;
TcpStream::from_std(stream)
}
}

View File

@ -72,8 +72,19 @@ test-docs toolchain="": && doc
test-all toolchain="": (test toolchain) (test-docs toolchain)
# Document crates in workspace.
doc *args:
doc *args: && doc-set-workspace-crates
rm -f "$(cargo metadata --format-version=1 | jq -r '.target_directory')/doc/crates.js"
RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --no-deps --workspace {{ all_crate_features }} {{ args }}
[private]
doc-set-workspace-crates:
#!/usr/bin/env bash
(
echo "window.ALL_CRATES ="
cargo metadata --format-version=1 \
| jq '[.packages[] | select(.source == null) | .targets | map(select(.doc) | .name)] | flatten'
echo ";"
) > "$(cargo metadata --format-version=1 | jq -r '.target_directory')/doc/crates.js"
# Document crates in workspace and watch for changes.
doc-watch: