Summary
The root package has no Cargo include or exclude policy, so the generated crate currently includes repository material unrelated to compiling or using Anvil.
Measured on master at afeec142a24dac622a7ff6f54d0f5021f319fb17:
- 233 packaged files
- 29.0 MiB uncompressed / 4.9 MiB compressed
- 90 files under
research/
- 38 files under
docs/
- GitHub workflows and issue templates
cargo publish --dry-run succeeds, so this is package hygiene and future size control rather than a current registry-size failure.
Suggested approach
Add a package include allowlist in Cargo.toml covering the Rust sources, build.rs, required bundled resources, examples/tests needed in the source package, Cargo metadata, README, and legal files.
Pay particular attention to files consumed through include_str!, include_bytes!, or build.rs, including bundled/ content.
Acceptance criteria
cargo package -p brokk-anvil --locked --list contains every compile-time/runtime source asset needed by the crate.
- The package excludes
research/, docs-site sources, and repository administration files unless deliberately required.
cargo package -p brokk-anvil --locked passes verification.
cargo publish --dry-run -p brokk-anvil --locked passes.
Summary
The root package has no Cargo
includeorexcludepolicy, so the generated crate currently includes repository material unrelated to compiling or using Anvil.Measured on master at
afeec142a24dac622a7ff6f54d0f5021f319fb17:research/docs/cargo publish --dry-runsucceeds, so this is package hygiene and future size control rather than a current registry-size failure.Suggested approach
Add a package
includeallowlist inCargo.tomlcovering the Rust sources,build.rs, required bundled resources, examples/tests needed in the source package, Cargo metadata, README, and legal files.Pay particular attention to files consumed through
include_str!,include_bytes!, orbuild.rs, includingbundled/content.Acceptance criteria
cargo package -p brokk-anvil --locked --listcontains every compile-time/runtime source asset needed by the crate.research/, docs-site sources, and repository administration files unless deliberately required.cargo package -p brokk-anvil --lockedpasses verification.cargo publish --dry-run -p brokk-anvil --lockedpasses.