Cysharp / MemoryPack

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

Use in F# #159

Closed francotiveron closed 1 year ago

francotiveron commented 1 year ago

I would like to use MemoryPack in my F# project, but F# doesn't support generators and doesn't allow partial classes. Is there another way to use it in pure F#, or should I stick with MessagePack or FsPickler?

neuecc commented 1 year ago

If you isolate the project, write only the types to be serialized in C#, and refer to MemoryPack.Core for F#, I think you can get it to work, but I have not checked.