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

Support native AoT #729

Merged
merged 6 commits into from
Feb 6, 2024
Merged

Conversation

martincostello
Copy link
Member

  • Add support for native AoT for net6.0 and net7.0.
  • Use JsonSerializer.SerializeToUtf8Bytes() where possible.
  • Fix ArgumentException.ParamName not being asserted on.
  • Fix benchmarks no longer running due to use of Artifacts Output and an incorrectly defined POCO property.
  • Fix unit analyser warning by using TheoryData<T>.
  • Add unit tests for missing coverage.
  • Simplify some tests.
  • Update benchmarks in README.

Fix unit analyser warning by using `TheoryData<T>`.
Fix benchmarks no longer running due to use of Artifacts Output and an incorrectly defined POCO property.
- Add support for native AoT for `net6.0` and `net7.0`.
- Use `JsonSerializer.SerializeToUtf8Bytes()` where possible.
- Fix `ArgumentException.ParamName` not being asserted on.
Update benchmarks after changes and fixes.
- Add unit tests for missing coverage.
- Simplify some tests.
@martincostello martincostello added enhancement A change that enhances existing functionality or documentation. documentation Documentation for the use of the library. .NET Pull requests that update .net code labels Feb 4, 2024
@martincostello martincostello added this to the v4.2.0 milestone Feb 4, 2024
Copy link

codecov bot commented Feb 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0ac9653) 96.93% compared to head (5851574) 99.29%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #729      +/-   ##
==========================================
+ Coverage   96.93%   99.29%   +2.36%     
==========================================
  Files          15       15              
  Lines         847      855       +8     
  Branches      193      193              
==========================================
+ Hits          821      849      +28     
+ Misses         22        4      -18     
+ Partials        4        2       -2     
Flag Coverage Δ
linux 99.29% <100.00%> (+2.36%) ⬆️
macos 99.29% <100.00%> (+2.36%) ⬆️
windows 99.29% <100.00%> (+2.36%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martincostello martincostello marked this pull request as ready for review February 4, 2024 15:21
@martincostello martincostello requested a review from a team as a code owner February 4, 2024 15:21
Add a unit test to help prevent the benchmarks get broken again in the future.
@martincostello martincostello merged commit cd4f0b9 into justeattakeaway:main Feb 6, 2024
13 checks passed
@martincostello martincostello deleted the native-aot branch February 6, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation for the use of the library. enhancement A change that enhances existing functionality or documentation. .NET Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants