summaryrefslogtreecommitdiff
path: root/src/abi_hash.zig
blob: 9cd01cf92816b9a9957e6c10699ce66c26552093 (plain) (blame)
1
2
3
4
5
6
7
8
9
//! Prints `abi.layout_hash` as Zig source: build.zig runs this once per change
//! of the abi sources and hands the result to host and sketches as the module
//! `abi_hash`.
const std = @import("std");
const abi = @import("abi");

pub fn main(init: std.process.Init) !void {
    try std.Io.File.stdout().writeStreamingAll(init.io, std.fmt.comptimePrint("pub const layout: u64 = 0x{x};\n", .{abi.layout_hash}));
}