justeattakeaway / JustSaying

A light-weight message bus on top of AWS services (SNS and SQS).
Apache License 2.0
48 stars 18 forks source link

Native AOT Compatibility #1347

Open hwoodiwiss opened 9 months ago

hwoodiwiss commented 9 months ago

Is your feature request related to a problem? Please describe. I would like to be able to include JustSaying in applications that are compiled to native binaries via .NET's Native AOT feature.

Describe the solution you'd like There will be a number of places that will need DynamicallyAccessedMembersAttribute added, but I think there are also parts, especially around serialization, where the API will need to be changed so that generic types can be fully cascaded.

Describe alternatives you've considered The alternative at this point is to not use JustSaying and use the AWS libraries directly, but lose out on some of the benefits of JustSaying.

hwoodiwiss commented 9 months ago

I've written up a first pass on this, and it looks like it can be done without too big an API change, mostly just additions.