Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
target/debug/rulean frobnicate || code=$?
test "$code" = 64

# The repository rules of the spec: the dependency rule (03.3) and the no-C policy (13.3). `cargo xtask all` also scans the vendored source of each dependency. A later pull request adds the Aeneas subset (10.6).
# The repository rules of the spec: the dependency rule (03.3), the no-C policy (13.3) and the Aeneas subset (10.6). `cargo xtask all` also scans the vendored source of each dependency.
policy:
name: policy
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All changes that a user can see are in this file. The format follows Keep a Chan

## [Unreleased]

### Fixed

- `cargo xtask all` runs the subset check too. Before this change, the `policy` CI job did not check the Aeneas subset.

## [0.0.2] - 2026-11-21

### Added
Expand Down
10 changes: 6 additions & 4 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ commands:
deps check the dependency rule of spec 03.3
nonc check the no-C policy of spec 13.3 (add --vendor to scan the vendored sources)
subset check that the core crates stay in the Aeneas subset of spec 10.6
all run every check, with --vendor";
all run every check, with --vendor for nonc";

/// Runs every check and joins the problems, so that one run shows all of them.
fn all() -> Result<(), Vec<String>> {
let mut problems = Vec::new();
for check in [deps::run as fn() -> Result<(), Vec<String>>, || {
nonc::run(true)
}] {
for check in [
deps::run as fn() -> Result<(), Vec<String>>,
|| nonc::run(true),
subset::run,
] {
if let Err(p) = check() {
problems.extend(p);
}
Expand Down
Loading