Skip to content

Commit e584cab

Browse files
committed
Run no-default doctests in local gate
1 parent 06d1bf3 commit e584cab

5 files changed

Lines changed: 18 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
- Hardened release metadata validation for the README's zero-dependency,
139139
scalar-only development, inert future-feature, constant-time non-claim, and
140140
release-evidence wording.
141+
- Added no-default-features doctests to the standard local gate and release
142+
evidence docs so no-alloc examples are checked alongside all-features
143+
doctests.
141144

142145
## 0.8.0 - 2026-05-16
143146

docs/RELEASE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ The release gate covers:
4242
- feature-mode tests
4343
- Miri no-default-features tests when nightly Miri is installed
4444
- Miri evidence manifest generation when nightly Miri is installed
45+
- all-features and no-default-features doctests
4546
- docs
4647
- packaged async admission policy while the `tokio` feature remains inert
4748
- installed cross-target `no_std` checks

docs/RELEASE_EVIDENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The release gate runs:
4949
including inert-feature and per-feature dependency graph validation
5050
- clippy with warnings denied
5151
- default, all-features, and no-default-features tests
52-
- doctests and documentation build
52+
- all-features and no-default-features doctests plus documentation build
5353
- `cargo deny check`
5454
- `cargo audit`
5555
- `cargo license --json`

scripts/checks.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ cargo test --no-default-features --all-targets
6464
echo "checks: doctests"
6565
cargo test --doc --all-features
6666

67+
echo "checks: doctests no default features"
68+
cargo test --doc --no-default-features
69+
6770
echo "checks: docs"
6871
cargo doc --no-deps --all-features
6972

scripts/validate-release-metadata.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ do
183183
fi
184184
done
185185

186+
for required_checks_command in \
187+
"cargo test --doc --all-features" \
188+
"cargo test --doc --no-default-features"
189+
do
190+
if ! grep -F -q "$required_checks_command" scripts/checks.sh; then
191+
echo "release metadata: standard checks are missing $required_checks_command" >&2
192+
exit 1
193+
fi
194+
done
195+
186196
package_list="$(
187197
cargo package --locked --allow-dirty --list
188198
)"

0 commit comments

Comments
 (0)