google / google/zerocopy

Test zerocopy-derive when zerocopy's `derive` feature is not enabled

Open
#563 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2.6k
Forks
179
Avg merge
1d 19h
Merged PRs (30d)
29

Description

In the past, we've [written code](https://github.com/google/zerocopy/commit/4faad6efe2ad671590958ea7766bfc219c437eee) which breaks this configuration (probably; I haven't actually tested that one because we later made a change which removed that `cfg` for unrelated reasons). We should add a test in CI that tests a crate which depends on zerocopy without the `derive` feature and also depends on zerocopy-derive directly.

One option would be to create a dedicated crate for this purpose with a few basic uses of derives. Another would be to figure out how to compile all of our existing tests in both configurations.

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.