Skip to content

crate file is very large due to one test file #742

@ijackson

Description

@ijackson

Progress

  • zerocopy-derive's Cargo.toml updated to exclude the files listed below
  • Cargo.toml update backported to 0.7.x
  • New 0.7.x version published

Original text

The crate file for zerocopy-derive 0.7.31 is 533507 bytes. That's not great, since lots of people must donwload it. It's disproportionate.

This is because of these two files

-rw-r--r-- 0/0         2354944 2006-07-24 02:21 zerocopy-derive-0.7.31/tests/enum_from_bytes.rs
-rw-r--r-- 0/0         1169353 2006-07-24 02:21 zerocopy-derive-0.7.31/tests/ui-nightly/enum_from_bytes_u16_too_few.rs.disabled

The 2nd one could be simply git rmd. The first one contains a large amount of very formulaic test case which could be generated by creative use of macro_rules and paste.

If you like I could have a go at the macrology. However, I am not willing to sign a CLA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions