diff --git a/patches/patch.sh b/patches/patch.sh index a7378e75..98139769 100755 --- a/patches/patch.sh +++ b/patches/patch.sh @@ -5,3 +5,9 @@ # Add parse_request_no_body cat parse_request_no_body.v >> "$1"/vlib/net/http/request.v + +# Make sha256 functions public +sed -i \ + -e 's/\(fn (mut d Digest) checksum(\)/pub \1/' \ + -e 's/\(fn (mut d Digest) write(\)/pub \1/' \ + "$1"/vlib/crypto/sha256/sha256.v