chore: import upstream snapshot with attribution
CI / Deep Native Runtime Cases (1/6) (push) Has been skipped
CI / Native Preflight (push) Failing after 1s
CI / Native Runtime Cases (1/2) (push) Failing after 0s
CI / Native Runtime Cases (2/2) (push) Failing after 1s
CI / Native Metadata Reports (push) Failing after 0s
CI / Native Direct Backend Artifacts (push) Failing after 0s
CI / Native Sanitizer Smoke (push) Failing after 1s
CI / Command Contract Snapshots (push) Failing after 1s
CI / Deep Conformance Suite (push) Has been skipped
CI / Graph Build Perf (push) Failing after 1s
CI / Deep Native Preflight (push) Has been skipped
CI / Deep Native Runtime Cases (2/6) (push) Has been skipped
CI / Deep Native Runtime Cases (3/6) (push) Has been skipped
CI / Conformance Suite (push) Failing after 1s
CI / Workspace Checks (push) Failing after 0s
CI / Deep Native Runtime Cases (5/6) (push) Has been skipped
CI / Deep Native Runtime Cases (6/6) (push) Has been skipped
CI / Deep Native Runtime Cases (4/6) (push) Has been skipped
CI / Deep Graph Build Perf (push) Has been skipped

This commit is contained in:
wehub-resource-sync
2026-07-13 12:29:30 +08:00
commit e7738de6d2
1723 changed files with 216139 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
pub fn seed(fs: Fs) -> Void raises [NotFound, TooLarge, Io] {
var file: owned<File> = check std.fs.createOrRaise(fs, ".zero/zero-hash-input.txt")
check std.fs.writeAllOrRaise(&mut file, std.mem.span("zero hash payload\n"))
std.fs.close(&mut file)
}
+22
View File
@@ -0,0 +1,22 @@
use input
pub fn main(world: World) -> Void raises [NotFound, TooLarge, Io] {
let fs: Fs = std.fs.host()
check seed(fs)
var storage: [64]u8 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
var alloc: FixedBufAlloc = std.mem.fixedBufAlloc(storage)
let arg_path: Maybe<String> = std.args.get(1)
var path: String = ".zero/zero-hash-input.txt"
if arg_path.has {
path = arg_path.value
}
let body: Maybe<owned<ByteBuf>> = std.fs.readAll(alloc, fs, path, 64)
if body.has {
var buf: owned<ByteBuf> = body.value
let bytes: MutSpan<u8> = std.mem.bufBytes(&buf)
let checksum: u32 = std.codec.crc32Bytes(bytes)
if checksum == 1120241454 {
check world.out.write("zero-hash ok\n")
}
}
}
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
[package]
name = "zero-hash"
version = "0.1.0"
[targets.cli]
kind = "exe"
main = "src/main.0"