@@ -75,21 +75,21 @@ git_hooks:
7575# # CORE ##
7676# #########
7777deps_core : ${WASI_SDK_FOLDER}
78- rustup target add wasm32-wasi
78+ rustup target add wasm32-wasip1
7979 curl https://wasmtime.dev/install.sh -sSf | bash
8080
8181${CORE_DIST} : ${WASI_SDK_FOLDER} ${CORE_JS_ASSETS_MAP_STD} ${CORE_JS_ASSETS_PROFILE_VALIDATOR} ${CORE_SCHEMA_ASSETS_SECURITY_VALUES} ${CORE_SCHEMA_ASSETS_PARAMETERS_VALUES}
8282 mkdir -p ${CORE_DIST}
8383 touch ${CORE_DIST}
8484
8585${CORE_WASM} : ${CORE_DIST}
86- cd core; cargo build --package oneclient_core --target wasm32-wasi ${CARGO_FLAGS}
86+ cd core; cargo build --package oneclient_core --target wasm32-wasip1 ${CARGO_FLAGS}
8787 @echo ' Optimizing wasm...'
88- wasm-opt -Oz ${WASM_OPT_FLAGS} core/target/wasm32-wasi /${CARGO_PROFILE} /oneclient_core.wasm --output ${CORE_WASM}
88+ wasm-opt -Oz ${WASM_OPT_FLAGS} core/target/wasm32-wasip1 /${CARGO_PROFILE} /oneclient_core.wasm --output ${CORE_WASM}
8989
9090${TEST_CORE_WASM} : ${CORE_DIST}
91- cd core; cargo build --package oneclient_core --target wasm32-wasi --features " core_mock" ${CARGO_FLAGS}
92- cp core/target/wasm32-wasi /${CARGO_PROFILE} /oneclient_core.wasm ${TEST_CORE_WASM}
91+ cd core; cargo build --package oneclient_core --target wasm32-wasip1 --features " core_mock" ${CARGO_FLAGS}
92+ cp core/target/wasm32-wasip1 /${CARGO_PROFILE} /oneclient_core.wasm ${TEST_CORE_WASM}
9393
9494${CORE_ASYNCIFY_WASM} : ${CORE_WASM}
9595 @echo ' Running asyncify...'
@@ -100,18 +100,18 @@ ${TEST_CORE_ASYNCIFY_WASM}: ${TEST_CORE_WASM}
100100
101101${CORE_COMLINK_WASM} :
102102 mkdir -p ${CORE_DIST}
103- cd core; cargo build --package comlink_wasm --target wasm32-wasi ${CARGO_FLAGS}
104- wasm-opt -Os ${WASM_OPT_FLAGS} core/target/wasm32-wasi /${CARGO_PROFILE} /comlink_wasm.wasm --output ${CORE_COMLINK_WASM}
103+ cd core; cargo build --package comlink_wasm --target wasm32-wasip1 ${CARGO_FLAGS}
104+ wasm-opt -Oz ${WASM_OPT_FLAGS} core/target/wasm32-wasip1 /${CARGO_PROFILE} /comlink_wasm.wasm --output ${CORE_COMLINK_WASM}
105105
106106${WASI_SDK_FOLDER} :
107107 wget -qO - ${WASI_SDK_URL} | tar xzvf - -C core
108108
109109test_core : ${WASI_SDK_FOLDER} ${CORE_JS_ASSETS_MAP_STD} ${CORE_JS_ASSETS_PROFILE_VALIDATOR} ${CORE_SCHEMA_ASSETS_SECURITY_VALUES} ${CORE_SCHEMA_ASSETS_PARAMETERS_VALUES}
110- cd core && cargo test -- --nocapture
110+ cd core && cargo test
111111
112112build_core : ${CORE_WASM} ${TEST_CORE_WASM} ${CORE_ASYNCIFY_WASM} ${TEST_CORE_ASYNCIFY_WASM}
113113build_core_json_schemas :
114- cd core/json_schemas && cargo build && wasmtime run --dir=. ../target/wasm32-wasi /debug/json_schemas.wasm
114+ cd core/json_schemas && cargo build && wasmtime run --dir=. ../target/wasm32-wasip1 /debug/json_schemas.wasm
115115
116116${CORE_JS_ASSETS_MAP_STD} : ${MAP_STD}
117117 mkdir -p ${CORE_JS_ASSETS}
0 commit comments