---
title: "#borsh articles | Hashnode"
description: "Explore 2 articles tagged #borsh on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/borsh"
---

Tag

# #borsh

2 posts · 0 followers

[Ayush Agrawal](https://hashnode.com/@AyushAgr91) · [Jul 15](https://hashnode.com/posts/the-7-bytes-that-weren-t-in-the-idl-how-repr-c-padding-breaks-a-borsh-client/6a57c95fd6cc3a57108a73c7)

### [The 7 Bytes That Weren't in the IDL: How #\[repr(C)\] Padding Breaks a Borsh Client](https://blog.ayushagr.me/the-7-bytes-that-weren-t-in-the-idl-how-repr-c-padding-breaks-a-borsh-client?utm_source=hashnode&utm_medium=feed)

A u64 field added 7 bytes of padding my borsh client never sent, triggering custom program error: 0x0 on Solana. When Rust pads, and how to fix it.

17 min read · [blog.ayushagr.me](https://blog.ayushagr.me/the-7-bytes-that-weren-t-in-the-idl-how-repr-c-padding-breaks-a-borsh-client?utm_source=hashnode&utm_medium=feed)

[Will Kennedy](https://hashnode.com/@wkennedy) · [Sep 3, 2023](https://hashnode.com/posts/borsh-to-json-in-rust-using-only-schemas/64f7e576ba31450481798c0c)

### [Borsh to JSON in Rust using only schemas](https://brytelands.hashnode.dev/borsh-to-json-in-rust-using-only-schemas?utm_source=hashnode&utm_medium=feed)

tl;dr Use this utility to generate a binary schema file from a Rust struct that implements the BorshSchema trait. Then using the schema file, easily convert to and from JSON and Borsh. No code generation needed. Source https://github.com/wkennedy/bor...

4 min read · [brytelands.hashnode.dev](https://brytelands.hashnode.dev/borsh-to-json-in-rust-using-only-schemas?utm_source=hashnode&utm_medium=feed)
