diff options
Diffstat (limited to 'src/abi_hash.zig')
| -rw-r--r-- | src/abi_hash.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/abi_hash.zig b/src/abi_hash.zig new file mode 100644 index 0000000..9cd01cf --- /dev/null +++ b/src/abi_hash.zig @@ -0,0 +1,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})); +} |
