well-typed / borsh Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
decodeLitleEndian
should not have been exported, and decodeLargeToken
, decodeIncremental
and decodeIncremental_
should get some docs. When we do, is there still a need to expose the internals of Decoder
..? What is the minimal thing we should export? ๐ค
It should not be possible to coerce say FixedSizeArray 32 Word8
to FixedSizeArray 64 Word8
.
On the rust side, a struct (keyword struct
) will not have a tag, but the general case (keyword enum
) will get a tag. On the Haskell side we not have different keywords for this, and a struct is simply an ADT with a single constructor. However, this means that if we derive FromBorsh
and co for such a struct, the decoder will expect a tag, but the Rust-side encoder won't provide one. We can recover the right behaviour by using deriving .. via Struct MyStruct
, but this is easy to forget. Perhaps we shoud force users to always use deriving via, deriving .. via Struct T
versus deriving .. via Enum T
.
We don't need the full footprint of memory
.
See
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.