Skip to content

Limit the brokk-anvil crates.io package to release inputs #303

Description

@foundev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions