Cysharp / MemoryPack

Zero encoding extreme performance binary serializer for C# and Unity.
MIT License
3.01k stars 182 forks source link

Any hope for supporting netstandard2.0? #284

Open TheXenocide opened 2 months ago

TheXenocide commented 2 months ago

I tried to look around other issues and it seems like newer language features are being used which made targeting other runtimes difficult, but I'm not sure which language features. Is there any chance of getting netstandard2.0 support? Maybe by using something like PolySharp to polyfill the missing features so you can use C# 12 while still targeting netstandard2.0?

We have an enterprise solution that is stuck using an older version of protobuf-net because they've removed support for polymorphism and the performance of this package looks very promising, but for now there's still .NET Framework 4.8 components that need to serialize and deserialize the same data that the newer .NET stuff does.

neuecc commented 2 months ago

It's probably possible, but it would require a significant amount of effort and add maintenance costs for future upkeep. Since there doesn't seem to be much demand for it, I'm not currently considering adding it.