MagicOnion icon indicating copy to clipboard operation
MagicOnion copied to clipboard

At v7.0.0, the server does not support Native AOT.

Open chenlikeen opened this issue 9 months ago • 2 comments

Excuse me, when will the server support the Native AOT feature?

chenlikeen avatar Feb 14 '25 08:02 chenlikeen

Is a good question, I was just looking at this package for this exact reason... Would this be on the roadmap? or just not possible atm?

Biztactix-Ryan avatar Feb 19 '25 04:02 Biztactix-Ryan

We are planning to support Native AOT, but we have not yet decided on a specific schedule. This will require work such as supporting the Source Generator and Trimming, so it will take some time.

mayuki avatar Feb 27 '25 07:02 mayuki

Big up 🙏 There is a task on which you describe how you want to switch to source generator to allow someone to start contribution? We aim for a grpc code first communication which can be AOT and this project is suitable to replace protobuf-net (current in use) and we don't want to reimplement the wheel in our sources :)

Dona278 avatar Jul 22 '25 21:07 Dona278

In order to support Source Generator, several additional API designs are required (e.g., how to provide hints for discovering Service and Hub implementations). We plan to prototype Source Generator support in the near future.

mayuki avatar Jul 25 '25 07:07 mayuki

@mayuki Any latest news about this feature? Thanks

yang-xiaodong avatar Aug 21 '25 12:08 yang-xiaodong

Yea I'm also looking at this , what I'm really after is a combination of magic onion and fastendpoints into one library using the same poco classes that can do normal http api endpoints and also gRPC endpoints following the Repr design pattern (request/response) and that is also AOT friendly -> that will be the wholy grail ;))

ghost avatar Oct 07 '25 10:10 ghost