New Feature Branch for TinyGo in fxamacker/cbor #583
fxamacker
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Branch feature/cbor-tinygo-beta is now available!
This branch is based on fxamacker/cbor v2.7.0, so it has the latest features, memory improvements, and speedups. New features in v2.7.0 like
cbor.MarshalToBuffer()
,UserBufferEncMode
interface, etc. can further reduce memory use.It can be compiled using either TinyGo v0.33 or go1.20+. It passed unit tests with both compilers (for linux/amd64).
When compiled with go1.22, this branch is basically the same as v2.7.0. Build tags were used for changes needed by TinyGo v0.33.
Changes from v2.7.0 main branch
Default⚠️ 24+ crashes tests when compiled with tinygo v0.33.
DecOptions.MaxNestedLevels
is reduced to 16 (was 32). Users can specify higher limit butDisabled decoding CBOR tag data to Go interface because tinygo v0.33 is missing needed feature.
Encoding error message can be different when encoding function type.
Some changes can be reverted after related issues at TinyGo are resolved.
Beta Was this translation helpful? Give feedback.
All reactions