mayuki / Cocona

Micro-framework for .NET console application. Cocona makes it easy and fast to build console applications on .NET.
MIT License
3.22k stars 83 forks source link

DI supports Aot | trimming #151

Open naratteu opened 2 months ago

naratteu commented 2 months ago

Even though the code becomes a bit messy, it will provide some support for Aot building.

The example of effects: https://github.com/naratteu/HexRR/commit/e64e8374c6ecb2cf75d0d8ad7003b287cd461fd0

Simonl9l commented 2 weeks ago

Are there any plans to make Cocona AoT- able?

naratteu commented 2 weeks ago

Are there any plans to make Cocona AoT- able?

I have no plans for that.


Cocona 자체가 AoT를 보증하는 라이브러리가 되도록 작업하는것은 리스크가 커보입니다. 이 풀 리퀘스트는 어디까지나 일부의 AoT 사례만 지원하는 "patch" 입니다.

저는 근본적으로 AoT를 위해 소스제너레이터 기반으로 만들어진 ConsoleAppFramework로 이전하는걸 고려하고있습니다. CAF에서도 풀리퀘스트를 기다리고 있는데, 여기처럼 응답이 없네요 😭