sema::ir always emits proof-index.json and proof-obligations.json through knowledge, so gating that module on the cli feature broke library consumers built with --no-default-features (E0433). knowledge is now part of the core compiler; the CLI binary keeps required-features = ["cli"]. Add a feature-matrix CI gate for the no-feature, cli-only and default configurations, retire the completed one-time v2.9.0 promotion workflow, and record the reviewed bilingual 2.9.1 notes and version metadata.
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
# Cargo feature compatibility gate.
|
|
#
|
|
# `sema` (the core compiler) must build without the `cli` feature. Library
|
|
# consumers such as qdagent depend on `marqdo` with `default-features = false`,
|
|
# so any unconditional reference to a `cli`-gated module is a release blocker.
|
|
# Keep this matrix in sync with the feature graph in Cargo.toml.
|
|
name: feature-matrix
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "src/**"
|
|
- "Cargo.toml"
|
|
- "Cargo.lock"
|
|
- ".github/workflows/feature-matrix.yml"
|
|
pull_request:
|
|
paths:
|
|
- "src/**"
|
|
- "Cargo.toml"
|
|
- "Cargo.lock"
|
|
- ".github/workflows/feature-matrix.yml"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: feature-matrix-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lib-feature-matrix:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@1.81.0
|
|
- name: Library builds with no default features
|
|
run: cargo check --locked --lib --no-default-features
|
|
- name: Library builds with only the cli feature
|
|
run: cargo check --locked --lib --no-default-features --features cli
|
|
- name: Library builds with default features
|
|
run: cargo check --locked --lib
|