eclipse-iceoryx / iceoryx2

Eclipse iceoryx2™ - true zero-copy inter-process-communication in pure Rust
https://iceoryx.io
Apache License 2.0
444 stars 22 forks source link

[#224] placement new #229

Closed elfenpiff closed 2 weeks ago

elfenpiff commented 3 weeks ago

Notes for Reviewer

Implements the PlacementDefault trait and the corresponding proc macro. In a follow up PR the PlacementDefault macro is implemented for all iceoryx2-bb-containers and an example is provided on how to use it in an iceoryx2 context.

Pre-Review Checklist for the PR Author

  1. [x] Add sensible notes for the reviewer
  2. [x] PR title is short, expressive and meaningful
  3. [x] Relevant issues are linked in the References section
  4. [x] Every source code file has a copyright header with SPDX-License-Identifier: Apache-2.0 OR MIT
  5. [x] Branch follows the naming format (iox2-123-introduce-posix-ipc-example)
  6. [x] Commits messages are according to this guideline
    • [x] Commit messages have the issue ID ([#123] Add posix ipc example)
    • [x] Commit author matches Eclipse Contributor Agreement (and ECA is signed)
  7. [x] Tests follow the best practice for testing
  8. [x] Changelog updated in the unreleased section including API breaking changes
  9. [x] Assign PR to reviewer
  10. [ ] All checks have passed (except task-list-completed)

Checklist for the PR Reviewer

Post-review Checklist for the PR Author

  1. [ ] All open points are addressed and tracked via issues

References

Relates to #224

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 0% with 60 lines in your changes missing coverage. Please review.

Project coverage is 79.77%. Comparing base (2626216) to head (12fb965). Report is 2 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/eclipse-iceoryx/iceoryx2/pull/229/graphs/tree.svg?width=650&height=150&src=pr&token=FN3YFXTJCI&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse-iceoryx)](https://app.codecov.io/gh/eclipse-iceoryx/iceoryx2/pull/229?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse-iceoryx) ```diff @@ Coverage Diff @@ ## main #229 +/- ## ========================================== - Coverage 80.02% 79.77% -0.25% ========================================== Files 183 185 +2 Lines 20426 20486 +60 ========================================== - Hits 16346 16343 -3 - Misses 4080 4143 +63 ``` | [Files](https://app.codecov.io/gh/eclipse-iceoryx/iceoryx2/pull/229?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse-iceoryx) | Coverage Δ | | |---|---|---| | [iceoryx2-pal/concurrency-sync/src/iox\_atomic.rs](https://app.codecov.io/gh/eclipse-iceoryx/iceoryx2/pull/229?src=pr&el=tree&filepath=iceoryx2-pal%2Fconcurrency-sync%2Fsrc%2Fiox_atomic.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse-iceoryx#diff-aWNlb3J5eDItcGFsL2NvbmN1cnJlbmN5LXN5bmMvc3JjL2lveF9hdG9taWMucnM=) | `96.19% <ø> (ø)` | | | [iceoryx2-bb/elementary/src/placement\_default.rs](https://app.codecov.io/gh/eclipse-iceoryx/iceoryx2/pull/229?src=pr&el=tree&filepath=iceoryx2-bb%2Felementary%2Fsrc%2Fplacement_default.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse-iceoryx#diff-aWNlb3J5eDItYmIvZWxlbWVudGFyeS9zcmMvcGxhY2VtZW50X2RlZmF1bHQucnM=) | `0.00% <0.00%> (ø)` | | | [iceoryx2-bb/derive-macros/src/lib.rs](https://app.codecov.io/gh/eclipse-iceoryx/iceoryx2/pull/229?src=pr&el=tree&filepath=iceoryx2-bb%2Fderive-macros%2Fsrc%2Flib.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse-iceoryx#diff-aWNlb3J5eDItYmIvZGVyaXZlLW1hY3Jvcy9zcmMvbGliLnJz) | `0.00% <0.00%> (ø)` | | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/eclipse-iceoryx/iceoryx2/pull/229/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse-iceoryx)
elBoberido commented 2 weeks ago

I reviewed the follow up PR. I think this one will be automatically be marked as merged once the follow up PR is merged.