fix(protocol): harden gateway contract validation
This commit is contained in:
@@ -20,7 +20,14 @@ def main() -> int:
|
||||
temp = pathlib.Path(directory)
|
||||
rust_bin = temp / "rust-conformance"
|
||||
swift_bin = temp / "swift-conformance"
|
||||
run(["rustc", "tools/native_conformance.rs", "-O", "-o", str(rust_bin)])
|
||||
rust_source = temp / "main.rs"
|
||||
rust_source.write_text(
|
||||
(ROOT / "gen/rust/protocol.rs").read_text(encoding="utf-8")
|
||||
+ "\n"
|
||||
+ (ROOT / "tools/native_conformance.rs").read_text(encoding="utf-8"),
|
||||
encoding="utf-8",
|
||||
)
|
||||
run(["rustc", str(rust_source), "-O", "-o", str(rust_bin)])
|
||||
run([str(rust_bin)])
|
||||
main_source = temp / "main.swift"
|
||||
main_source.write_text((ROOT / "tools/native_conformance.swift").read_text(encoding="utf-8"), encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user