FabricMC / fabric-language-kotlin

Fabric language module for Kotlin.
Apache License 2.0
293 stars 33 forks source link

Add kotlinx.serialization cbor module #57

Closed jakobkmar closed 2 years ago

jakobkmar commented 2 years ago

Added the kotlinx.serialization cbor module. For some parts of the of the API this module provides users will have to opt in to experimental features, but that is entirely their decision. Cbor is the only other well maintained official format for kotlinx.serialization next to Json. In a lot of cases this format is better fitting for modding than the Json format, because it is a binary one.

Note that I have already added the most recent version to the readme, assuming that this gets merged after the 1.6.0 update PR

modmuss50 commented 2 years ago

Whats the use case for this? First time ive heard of cbor, might just be me living under a rock though.

Looks to be small so I dont see any major reason to not include it, but dont want to include something that wont be used?

jakobkmar commented 2 years ago

It can be used for networking and storage, I am already using it for fabrikmc-network.

jakobkmar commented 2 years ago

https://cbor.io/ also provides some interesting information about the standard.

modmuss50 commented 2 years ago

Looks good 👍 Thanks for the link.