Skip to content

Commit

Permalink
dont' need that
Browse files Browse the repository at this point in the history
  • Loading branch information
ebatsell committed Dec 10, 2024
1 parent 8ce7c66 commit 65eb308
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions scripts/generate-clients.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,32 +119,11 @@ weightTableKinobi.update(kinobi.bottomUpTransformerVisitor([
};
},
},
// Override the default behavior for large arrays
{
select: (node) => {
return (
(kinobi.isNode(node, "structFieldTypeNode") &&
((kinobi.isNode(node.type, "arrayTypeNode") &&
kinobi.isNode(node.type.count, "fixedCountNode") &&
node.type.count.value > 32) ||
(kinobi.isNode(node.type, ["bytesTypeNode", "stringTypeNode"]) &&
kinobi.isNode(node.type, "fixedSizeTypeNode") &&
node.type.size > 32)))
);
},
transform: (node) => {
// Just return the node without adding the serde_with attribute
return node;
},
},


]));
weightTableKinobi.accept(renderers.renderRustVisitor(path.join(rustWeightTableClientDir, "src", "generated"), {
formatCode: true,
crateFolder: rustWeightTableClientDir,
deleteFolderBeforeRendering: true,
toolchain: "+nightly-2024-07-25"

}));
weightTableKinobi.accept(renderers.renderJavaScriptVisitor(path.join(jsWeightTableClientDir), {}));

0 comments on commit 65eb308

Please sign in to comment.