rocketmq-clients icon indicating copy to clipboard operation
rocketmq-clients copied to clipboard

[Enhancement] Improve C# Native AOT support

Open lillo42 opened this issue 8 months ago • 1 comments

Before Creating the Enhancement Request

  • [x] I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Programming Language of the Client

C#

Summary

Improve support for Native AOT

Motivation

Many developers in C# are using the Native AOT, it would be nice if RocketMQ could improve support for it.

Describe the Solution You'd Like

  • Change logs to use source coding generation
  • Change Regex to use source coding generation
  • Update Open Telemetry package to 1.7+ (see https://github.com/open-telemetry/opentelemetry-dotnet/issues/3429)
  • Add IsAotCompatible flags to csproj

Describe Alternatives You've Considered

No

Additional Context

https://learn.microsoft.com/en-us/dotnet/core/extensions/logger-message-generator https://learn.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-source-generators https://devblogs.microsoft.com/dotnet/creating-aot-compatible-libraries/

lillo42 avatar Apr 12 '25 21:04 lillo42

It's depending on this issue to start the implementation https://github.com/apache/rocketmq-clients/issues/945

lillo42 avatar Apr 12 '25 21:04 lillo42

This issue is stale because it has been open for 30 days with no activity. It will be closed in 3 days if no further activity occurs.

github-actions[bot] avatar May 13 '25 00:05 github-actions[bot]

It would be nice to have

lillo42 avatar May 13 '25 18:05 lillo42

This issue is stale because it has been open for 30 days with no activity. It will be closed in 3 days if no further activity occurs.

github-actions[bot] avatar Jun 13 '25 00:06 github-actions[bot]

This issue was closed because it has been inactive for 3 days since being marked as stale.

github-actions[bot] avatar Jun 16 '25 00:06 github-actions[bot]