Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/package/src/lib/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const PT_SYMBOL = "USDC";

export const MAX_TOKEN_AMOUNT_KEYWORD = "max";

export const RUST_WASM32_WASI_TARGET = "wasm32-wasi";
export const RUST_WASM32_WASI_TARGET = "wasm32-wasip1";

export const DEFAULT_MARINE_BUILD_ARGS = `--release`;

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package/src/lib/helpers/downloadFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export function getModuleWasmPath(moduleConfig: {
const fileName = `${moduleConfig.name}.${WASM_EXT}`;
const configDirName = moduleConfig.$getDirPath();
return moduleConfig.type === MODULE_TYPE_RUST
? resolve(projectRootDir, "target", "wasm32-wasi", "release", fileName)
? resolve(projectRootDir, "target", "wasm32-wasip1", "release", fileName)
: resolve(configDirName, fileName);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package/src/lib/rust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ targets = [
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"x86_64-apple-darwin",
"wasm32-wasi",
"wasm32-wasip1",
"wasm32-unknown-unknown",
]`,
FS_OPTIONS,
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2024-06-10"
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "wasm32-wasi"]
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "wasm32-wasip1"]