google / google/zerocopy

Validate `cargo package` contents in CI

Open
#192 1 comment 0 reactions 0 assignees View on GitHub
compatibility-nonbreaking experience-medium help wanted
Dominant language
Rust
Stars
2.6k
Forks
179
Avg merge
1d 19h
Merged PRs (30d)
29

Description

Add a CI test that runs `cargo package` or `cargo publish --dry-run` or similar, and validates certain aspects of the resulting artifacts. This should include:
- Validate that the `LICENSE` file was included, and that its contents are correct
- This is especially important since zerocopy-derive's license file was spuriously removed in https://github.com/google/zerocopy/pull/275 and re-added later in https://github.com/google/zerocopy/pull/489

This issue requires both identifying what contents we should be checking for and then writing the test. It's okay if this work is done incrementally (e.g., first checking for a single file, then adding more checks over time).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.