It may be beneficial for the users to allow the library be trimmed. Also may be feasible to make it AOT-friendly. Doc for the reference: https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/prepare-libraries-for-trimming