Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom derives callback #2059

Merged
merged 2 commits into from Jul 16, 2021
Merged

Commits on Jun 6, 2021

  1. add custom derives callback

    This callback allows us to specify arbitrary derive attributes for each
    named struct. This is useful for adding things that can't easily be
    implemented separately, such as `serde::Deserialize` or
    `zerocopy::FromBytes`.
    ericseppanen committed Jun 6, 2021
    Copy the full SHA
    3f0a0db View commit details
    Browse the repository at this point in the history
  2. add test for add_derives

    This test derives PartialEq for the Test struct, and then attempts to
    use that by calling assert_ne! on two Test instances. If the derive
    callback doesn't work, no PartialEq will be present and the test will
    fail to compile.
    ericseppanen committed Jun 6, 2021
    Copy the full SHA
    78d5dba View commit details
    Browse the repository at this point in the history