Skip to content

Commit

Permalink
Merge pull request #2057 from demergent-labs/update_ic_wasi_polyfill
Browse files Browse the repository at this point in the history
updating ic-cdk through ic-wasi-polyfill
  • Loading branch information
lastmjs authored Sep 2, 2024
2 parents 2e437c7 + bafc13b commit a660611
Show file tree
Hide file tree
Showing 9 changed files with 369 additions and 391 deletions.
665 changes: 361 additions & 304 deletions Cargo.lock

Large diffs are not rendered by default.

Binary file modified canister_templates/experimental.wasm
Binary file not shown.
Binary file modified canister_templates/stable.wasm
Binary file not shown.
3 changes: 3 additions & 0 deletions src/build/experimental/commands/compile/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IOType } from 'child_process';
import { rm } from 'fs/promises';

import { writeGeneratedFiles } from '../../../stable/commands/compile';
import { execSyncPretty } from '../../../stable/utils/exec_sync_pretty';
Expand Down Expand Up @@ -27,6 +28,8 @@ export async function runCommand(
wasmData
} = await getContext(canisterName, canisterConfig);

await rm(canisterPath, { recursive: true, force: true });

const javaScript = await compileJavaScript(main, esmAliases, esmExternals);

const { candid, methodMeta } = await getCandidAndMethodMeta(
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion src/build/rust/canister/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ slotmap = "=1.0.6"
sha2 = "0.10.8"
serde = "1.0.202"
serde_json = "1.0.107"
ic-wasi-polyfill = "0.5.0"
ic-wasi-polyfill = "0.6.1"
wasmedge_quickjs = { git = "https://github.com/demergent-labs/wasmedge-quickjs", rev = "573c6c07316de64e4bb9a9561b079f265fd9bcc4" }
# wasmedge_quickjs = { path = "/home/wasmedge-quickjs" }

Expand Down
2 changes: 1 addition & 1 deletion src/build/rust/open_value_sharing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2018"
serde = "1.0.202"
serde_json = "1.0.117"
candid = "0.10.8"
ic-cdk = "0.12.1"
ic-cdk = "0.12.2"
ic-cdk-macros = "0.8.4"
ic-cdk-timers = "0.6.0"
ic-stable-structures = "0.6.5"
Expand Down
3 changes: 3 additions & 0 deletions src/build/stable/commands/compile/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IOType } from 'child_process';
import { rm } from 'fs/promises';
import { outputFile } from 'fs-extra';
import { join } from 'path';

Expand All @@ -16,6 +17,8 @@ export async function runCommand(
const { main, canisterPath, candidPath, wasmBinaryPath, wasmData } =
getContext(canisterName, canisterConfig);

await rm(canisterPath, { recursive: true, force: true });

const javaScript = await compileJavaScript(main);

const { candid, methodMeta } = await getCandidAndMethodMeta(
Expand Down

This file was deleted.

0 comments on commit a660611

Please sign in to comment.