Fix MoonBit dependency compatibility

This commit is contained in:
nandi committed 2026-11-24 14:25:07 -08:00
1 parent fa70164336
commit 4d2a20308b
3 files changed
+5 -4

No files matched your search

+3 -3
View File
@@ -17,9 +17,9 @@ preferred_target = "native"
source = "src"
import {
"moonbitlang/async@0.22.10",
"moonbitlang/x@0.5.9",
"moonbitlang/async@0.22.9",
"moonbitlang/x@0.5.7",
"lin2077-zeming/moonxz@0.4.6",
"gaato/zstd@0.6.1",
"gaato/zstd@0.6.0",
"hustcer/ed25519@0.6.2",
}
+1 -1
View File
@@ -35,7 +35,7 @@ pub async fn http_get(
let (resp, body) = @http.get(cur, headers~) catch {
e => raise Network("GET \{cur} failed: \{e}")
}
let code = resp.code.to_int()
let code = resp.code
if code == 200 {
return Some(body.binary())
}
+1
View File
@@ -10,6 +10,7 @@ import {
"moonbitlang/core/argparse",
"moonbitlang/core/env",
"moonbitlang/core/encoding/utf8",
"moonbitlang/async",
"moonbitlang/async/fs",
"moonbitlang/async/process",
"lin2077-zeming/moonxz/lib" @xz,