Skip to content

patina-v15.0.1

Choose a tag to compare

@github-actions github-actions released this 19 Nov 16:15
· 481 commits to refs/heads/main since this release
bc6d2ef

What's Changed

  • Update zerocopy derive imports @makubacki (#1081)
    Change Details
      ## Description

    We opted to depend on zerocopy and zerocopy-derive directly instead of using the re-export of the derive macros in the zerocopy crate using the derives feature.

    In this case, the documentation states:

    derive Provides derives for the core marker traits via the
    zerocopy-derive crate. These derives are re-exported from
    zerocopy, so it is not necessary to depend on zerocopy-derive
    directly.

    However, you may experience better compile times if you instead
    directly depend on both zerocopy and zerocopy-derive in your
    Cargo.toml, since doing so will allow Rust to compile these crates
    in parallel. To do so, do not enable the derive feature, and list
    both dependencies in your Cargo.toml with the same leading non-zero
    version number; e.g:

    [dependencies]
    zerocopy = "0.X"
    zerocopy-derive = "0.X"

    To avoid the risk of duplicate import errors if one of your
    dependencies enables zerocopy’s derive feature, import derives as
    use zerocopy_derive::* rather than by name
    (e.g., use zerocopy_derive::FromBytes).

    From: https://docs.rs/zerocopy/latest/zerocopy/#cargo-features

    This follows the advice there to import derives from zerocopy_derive using a wildcard.

    • Impacts functionality?
    • Impacts security?
    • Breaking change?
    • Includes tests?
    • Includes documentation?

    How This Was Tested

    • cargo make all

    Integration Instructions

    • N/A


Full Changelog: patina-v15.0.0...v15.0.1