]> git.bitcoin.ninja Git - rust-lightning/commit
Convert `Vec` de/serialization impl to a macro and impl for tuples
authorMatt Corallo <git@bluematt.me>
Mon, 28 Nov 2022 00:42:15 +0000 (00:42 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 15 Jan 2023 20:30:12 +0000 (20:30 +0000)
commitb75a558a1de8e575bd501ccc64382e5b075c471e
treeab078ff83d820f5506c89f84394397e1cc334b21
parenta03db3ca309413c3408f5971b5ed5a8020422a81
Convert `Vec` de/serialization impl to a macro and impl for tuples

...to make it easier to add new implementations and implement it
for all tuples which implement `Readabe` + `Writeable`. Note that
we don't want to just convert to a blanket implementation as we'd
really like to keep our optimized `Vec<u8>` wrapper or we'll end
up spinning way too much when writing vecs of bytes.
lightning/src/util/ser.rs