Replace build-script path sharing with a stable build-support boundary (#49) - #96
Draft
leynos wants to merge 1 commit into
Draft
Conversation
Move theorem discovery, suite generation, and build preparation into the workspace-internal `theoremc-build-support` crate. The root build script and fixture crates now consume that crate through Cargo dependencies, rather than compiling root source files via `#[path]`. Keep Cargo metadata emission in the root build-script adapter, so the support library remains suitable for the workspace's strict lint policy. Update maintainer guidance to define the internal ownership and reuse policy.
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueWarning Your free Security trial is over. An organization admin can activate billing to continue. Comment |
Reviewer's GuideReplaces fragile source-file sharing between the root build script and tests with the workspace-internal Sequence diagram for build-script preparation through Cargo metadatasequenceDiagram
participant Cargo
participant BuildScript as RootBuildScript
participant Support as TheoremcBuildSupport
participant Filesystem
Cargo->>BuildScript: provide CARGO_MANIFEST_DIR and OUT_DIR
BuildScript->>Support: prepare_build_script()
Support->>Support: discover_theorem_inputs(manifest_dir)
Support->>Filesystem: write_theorem_suite(out_dir, discovery)
Filesystem-->>Support: generated suite written
Support-->>BuildScript: BuildScriptOutput
BuildScript->>Cargo: emit theoremc_has_theorems when has_theorems()
BuildScript->>Cargo: emit rerun_paths()
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This branch replaces
#[path]source sharing between the root build script and library tests with the workspace-internaltheoremc-build-supportcrate. It gives build discovery, suite generation, and generated Cargo metadata a stable Cargo dependency boundary without expanding the publictheoremcAPI.Closes #49.
Review walkthrough
Validation
make check-fmt: passed.make typecheck: passed.make lint: passed.make test: passed (647/647 nextest tests and doctests).make markdownlint: passed.make nixie: passed.coderabbit review --agent: completed with 0 findings.References
Summary by Sourcery
Replace path-based build-script source sharing with a stable internal build-support crate for theorem build integration.
Enhancements:
theoremc-build-supportcrate as a stable Cargo boundary for theorem discovery, suite generation, and build metadata.theoremcAPI.Build:
Documentation:
Tests: