diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5bb95386..d90f446a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,7 +68,7 @@ jobs: - name: Install DFX run: | wget --output-document install-dfx.sh "https://internetcomputer.org/install.sh" - DFX_VERSION=${DFX_VERSION:=0.14.3} DFXVM_INIT_YES=true bash install-dfx.sh < <(yes Y) + DFX_VERSION=${DFX_VERSION:=0.23.0} DFXVM_INIT_YES=true bash install-dfx.sh < <(yes Y) echo "$HOME/.local/share/dfx/bin" >> $GITHUB_PATH source "$HOME/.local/share/dfx/env" rm install-dfx.sh diff --git a/Cargo.lock b/Cargo.lock index 8821ea91..5aceef9b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -26,8 +26,8 @@ version = "0.1.0" dependencies = [ "canbench-rs", "candid", - "ic-cdk 0.12.3", - "ic-cdk-macros 0.8.4", + "ic-cdk", + "ic-cdk-macros", "ic-stable-structures", "maplit", "serde", @@ -101,7 +101,7 @@ checksum = "1bf8bb62243691def9834aeab86a137177fed7e46ec802456488dd671f0979bd" dependencies = [ "canbench-rs-macros", "candid", - "ic-cdk 0.17.2", + "ic-cdk", "serde", ] @@ -248,17 +248,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "getrandom" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.11.0+wasi-snapshot-preview1", -] - [[package]] name = "getrandom" version = "0.3.3" @@ -268,7 +257,7 @@ dependencies = [ "cfg-if", "libc", "r-efi", - "wasi 0.14.2+wasi-0.2.4", + "wasi", ] [[package]] @@ -277,20 +266,6 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" -[[package]] -name = "ic-cdk" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16c64e04d117461946f34785f8d327dc050a7e47abec6ffad93143dda5d755f1" -dependencies = [ - "candid", - "ic-cdk-executor", - "ic-cdk-macros 0.8.4", - "ic0 0.21.1", - "serde", - "serde_bytes", -] - [[package]] name = "ic-cdk" version = "0.17.2" @@ -299,8 +274,8 @@ checksum = "95a7344f41493cbf591f13ae9f90181076f808a83af799815c3074b19c693d2e" dependencies = [ "candid", "ic-cdk-executor", - "ic-cdk-macros 0.17.2", - "ic0 0.23.0", + "ic-cdk-macros", + "ic0", "serde", "serde_bytes", ] @@ -311,20 +286,6 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "903057edd3d4ff4b3fe44a64eaee1ceb73f579ba29e3ded372b63d291d7c16c2" -[[package]] -name = "ic-cdk-macros" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5a618e4020cea88e933d8d2f8c7f86d570ec06213506a80d4f2c520a9bba512" -dependencies = [ - "candid", - "proc-macro2", - "quote", - "serde", - "serde_tokenstream 0.1.7", - "syn 1.0.109", -] - [[package]] name = "ic-cdk-macros" version = "0.17.2" @@ -335,7 +296,7 @@ dependencies = [ "proc-macro2", "quote", "serde", - "serde_tokenstream 0.2.2", + "serde_tokenstream", "syn 2.0.101", ] @@ -346,8 +307,8 @@ dependencies = [ "canbench-rs", "candid", "hex", - "ic-cdk 0.12.3", - "ic-cdk-macros 0.8.4", + "ic-cdk", + "ic-cdk-macros", "ic_principal", "maplit", "proptest", @@ -355,12 +316,6 @@ dependencies = [ "test-strategy", ] -[[package]] -name = "ic0" -version = "0.21.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a54b5297861c651551676e8c43df805dad175cc33bc97dbd992edbbb85dcbcdf" - [[package]] name = "ic0" version = "0.23.0" @@ -482,9 +437,9 @@ dependencies = [ [[package]] name = "proptest" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14cae93065090804185d3b75f0bf93b8eeda30c7a9b4a33d3bdb3988d6229e50" +checksum = "6fcdab19deb5195a31cf7726a210015ff1496ba1464fd42cb4f537b8b01b471f" dependencies = [ "bit-set", "bit-vec", @@ -532,20 +487,19 @@ checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" [[package]] name = "rand" -version = "0.8.5" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" dependencies = [ - "libc", "rand_chacha", "rand_core", ] [[package]] name = "rand_chacha" -version = "0.3.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" dependencies = [ "ppv-lite86", "rand_core", @@ -553,18 +507,18 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.6.4" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" dependencies = [ - "getrandom 0.2.16", + "getrandom", ] [[package]] name = "rand_xorshift" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d25bf25ec5ae4a3f1b92f929810509a2f53d7dca2f50b794ff57e3face536c8f" +checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a" dependencies = [ "rand_core", ] @@ -635,17 +589,6 @@ dependencies = [ "syn 2.0.101", ] -[[package]] -name = "serde_tokenstream" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "797ba1d80299b264f3aac68ab5d12e5825a561749db4df7cd7c8083900c5d4e9" -dependencies = [ - "proc-macro2", - "serde", - "syn 1.0.109", -] - [[package]] name = "serde_tokenstream" version = "0.2.2" @@ -690,9 +633,9 @@ dependencies = [ [[package]] name = "structmeta" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ad9e09554f0456d67a69c1584c9798ba733a5b50349a6c0d0948710523922d" +checksum = "2e1575d8d40908d70f6fd05537266b90ae71b15dbbe7a8b7dffa2b759306d329" dependencies = [ "proc-macro2", "quote", @@ -702,9 +645,9 @@ dependencies = [ [[package]] name = "structmeta-derive" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a60bcaff7397072dca0017d1db428e30d5002e00b6847703e2e42005c95fbe00" +checksum = "152a0b65a590ff6c3da95cabe2353ee04e6167c896b28e3b14478c2636c922fc" dependencies = [ "proc-macro2", "quote", @@ -740,7 +683,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1" dependencies = [ "fastrand", - "getrandom 0.3.3", + "getrandom", "once_cell", "rustix", "windows-sys", @@ -748,9 +691,9 @@ dependencies = [ [[package]] name = "test-strategy" -version = "0.3.1" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8361c808554228ad09bfed70f5c823caf8a3450b6881cc3a38eb57e8c08c1d9" +checksum = "95eb2d223f5cd3ec8dd7874cf4ada95c9cf2b5ed84ecfb1046d9aefee0c28b12" dependencies = [ "proc-macro2", "quote", @@ -780,9 +723,9 @@ dependencies = [ [[package]] name = "tiny-rng" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d63628286617a0c67ee3c4ef92ccf62044e3813ed7376bb82a4586d2ff7974dd" +checksum = "f6c76284bb9f80fa3708a8566202eff2471b61da7c7f5bbcc57ad0bb06a56da0" [[package]] name = "typed-arena" @@ -829,12 +772,6 @@ dependencies = [ "libc", ] -[[package]] -name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" - [[package]] name = "wasi" version = "0.14.2+wasi-0.2.4" diff --git a/Cargo.toml b/Cargo.toml index 1238e07e..3c0f8140 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,11 +36,11 @@ canbench-rs = "0.2.0" candid = "0.10.14" hex = "0.4.3" ic_principal = { version = "0.1.1", default-features = false } -ic-cdk = "0.12.1" -ic-cdk-macros = "0.8.4" +ic-cdk = "0.17.2" +ic-cdk-macros = "0.17.2" maplit = "1.0.2" -proptest = "1" -serde = "1.0.132" -tempfile = "3.3.0" -test-strategy = "0.3.1" -tiny-rng = "0.2.0" +proptest = "1.7.0" +serde = "1.0.219" +tempfile = "3.20.0" +test-strategy = "0.4.1" +tiny-rng = "0.3.0" diff --git a/README.md b/README.md index 06c54d95..607da382 100644 --- a/README.md +++ b/README.md @@ -114,8 +114,8 @@ Dependencies: ```toml [dependencies] -ic-cdk = "0.6.8" -ic-cdk-macros = "0.6.8" +ic-cdk = "0.18.3" +ic-cdk-macros = "0.18.3" ic-stable-structures = "0.5.6" ``` diff --git a/benchmarks/btreemap/canbench_results.yml b/benchmarks/btreemap/canbench_results.yml index 5a8f2cfd..6cd4d8db 100644 --- a/benchmarks/btreemap/canbench_results.yml +++ b/benchmarks/btreemap/canbench_results.yml @@ -562,14 +562,14 @@ benches: btreemap_v2_insert_10mib_values: total: calls: 1 - instructions: 5258466146 + instructions: 5253123874 heap_increase: 322 stable_memory_increase: 3613 scopes: {} btreemap_v2_insert_blob8_u64: total: calls: 1 - instructions: 445545228 + instructions: 445536988 heap_increase: 0 stable_memory_increase: 4 scopes: {} @@ -618,7 +618,7 @@ benches: btreemap_v2_insert_blob_32_16: total: calls: 1 - instructions: 526875646 + instructions: 526875638 heap_increase: 0 stable_memory_increase: 11 scopes: {} @@ -639,7 +639,7 @@ benches: btreemap_v2_insert_blob_32_4: total: calls: 1 - instructions: 517264997 + instructions: 517264825 heap_increase: 0 stable_memory_increase: 8 scopes: {} @@ -695,14 +695,14 @@ benches: btreemap_v2_insert_u64_blob8: total: calls: 1 - instructions: 419629591 + instructions: 419628571 heap_increase: 0 stable_memory_increase: 5 scopes: {} btreemap_v2_insert_u64_u64: total: calls: 1 - instructions: 427776798 + instructions: 427767878 heap_increase: 0 stable_memory_increase: 6 scopes: {} @@ -723,42 +723,42 @@ benches: btreemap_v2_insert_vec_1024_128: total: calls: 1 - instructions: 2736605215 + instructions: 2734644691 heap_increase: 0 stable_memory_increase: 193 scopes: {} btreemap_v2_insert_vec_128_128: total: calls: 1 - instructions: 1014513310 + instructions: 1013642430 heap_increase: 0 stable_memory_increase: 51 scopes: {} btreemap_v2_insert_vec_16_128: total: calls: 1 - instructions: 723411190 + instructions: 723246682 heap_increase: 0 stable_memory_increase: 31 scopes: {} btreemap_v2_insert_vec_256_128: total: calls: 1 - instructions: 1398080885 + instructions: 1396732537 heap_increase: 0 stable_memory_increase: 71 scopes: {} btreemap_v2_insert_vec_32_1024: total: calls: 1 - instructions: 1222003718 + instructions: 1220926606 heap_increase: 0 stable_memory_increase: 171 scopes: {} btreemap_v2_insert_vec_32_128: total: calls: 1 - instructions: 768255873 + instructions: 768005749 heap_increase: 0 stable_memory_increase: 33 scopes: {} @@ -772,7 +772,7 @@ benches: btreemap_v2_insert_vec_32_256: total: calls: 1 - instructions: 884422718 + instructions: 883874106 heap_increase: 0 stable_memory_increase: 54 scopes: {} @@ -793,14 +793,14 @@ benches: btreemap_v2_insert_vec_32_512: total: calls: 1 - instructions: 998460439 + instructions: 997682895 heap_increase: 0 stable_memory_increase: 91 scopes: {} btreemap_v2_insert_vec_32_64: total: calls: 1 - instructions: 706175743 + instructions: 706148903 heap_increase: 0 stable_memory_increase: 24 scopes: {} @@ -814,28 +814,28 @@ benches: btreemap_v2_insert_vec_4_128: total: calls: 1 - instructions: 619760400 + instructions: 619661464 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_512_128: total: calls: 1 - instructions: 1852718372 + instructions: 1851040948 heap_increase: 0 stable_memory_increase: 112 scopes: {} btreemap_v2_insert_vec_64_128: total: calls: 1 - instructions: 855970280 + instructions: 855541288 heap_increase: 0 stable_memory_increase: 41 scopes: {} btreemap_v2_insert_vec_8_128: total: calls: 1 - instructions: 680099398 + instructions: 679949414 heap_increase: 0 stable_memory_increase: 23 scopes: {} @@ -912,7 +912,7 @@ benches: btreemap_v2_mem_manager_insert_blob512_u64: total: calls: 1 - instructions: 3145341377 + instructions: 3145341193 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -926,63 +926,63 @@ benches: btreemap_v2_mem_manager_insert_u64_u64: total: calls: 1 - instructions: 547556916 + instructions: 547547996 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_vec512: total: calls: 1 - instructions: 875570977 + instructions: 874783181 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_vec512_u64: total: calls: 1 - instructions: 1961516479 + instructions: 1959884611 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_blob512_u64: total: calls: 1 - instructions: 4345562792 + instructions: 4345562448 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_blob512: total: calls: 1 - instructions: 927125023 + instructions: 927125019 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_u64: total: calls: 1 - instructions: 783432091 + instructions: 783398371 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_vec512: total: calls: 1 - instructions: 1245826752 + instructions: 1244433576 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_vec512_u64: total: calls: 1 - instructions: 3075940121 + instructions: 3072998033 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob8_u64: total: calls: 1 - instructions: 617552320 + instructions: 617525736 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1003,7 +1003,7 @@ benches: btreemap_v2_pop_first_blob_16_128: total: calls: 1 - instructions: 759917150 + instructions: 759917146 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1031,7 +1031,7 @@ benches: btreemap_v2_pop_first_blob_32_16: total: calls: 1 - instructions: 816200947 + instructions: 816200943 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1052,7 +1052,7 @@ benches: btreemap_v2_pop_first_blob_32_4: total: calls: 1 - instructions: 799101493 + instructions: 799101117 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1073,7 +1073,7 @@ benches: btreemap_v2_pop_first_blob_32_8: total: calls: 1 - instructions: 817715654 + instructions: 817715606 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1087,7 +1087,7 @@ benches: btreemap_v2_pop_first_blob_512_128: total: calls: 1 - instructions: 4633015947 + instructions: 4633015939 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1108,14 +1108,14 @@ benches: btreemap_v2_pop_first_u64_blob8: total: calls: 1 - instructions: 699801821 + instructions: 699797969 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_u64: total: calls: 1 - instructions: 711281840 + instructions: 711251164 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1136,42 +1136,42 @@ benches: btreemap_v2_pop_first_vec_1024_128: total: calls: 1 - instructions: 4021467869 + instructions: 4018498913 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_128_128: total: calls: 1 - instructions: 1503839967 + instructions: 1502646431 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_16_128: total: calls: 1 - instructions: 1041501409 + instructions: 1041313741 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_256_128: total: calls: 1 - instructions: 2004716786 + instructions: 2002757542 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_1024: total: calls: 1 - instructions: 1686400508 + instructions: 1684807804 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_128: total: calls: 1 - instructions: 1103728679 + instructions: 1103431087 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1185,7 +1185,7 @@ benches: btreemap_v2_pop_first_vec_32_256: total: calls: 1 - instructions: 1223270586 + instructions: 1222529886 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1206,14 +1206,14 @@ benches: btreemap_v2_pop_first_vec_32_512: total: calls: 1 - instructions: 1373219637 + instructions: 1372107093 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_64: total: calls: 1 - instructions: 989996558 + instructions: 989955238 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1227,35 +1227,35 @@ benches: btreemap_v2_pop_first_vec_4_128: total: calls: 1 - instructions: 548663809 + instructions: 548589797 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_512_128: total: calls: 1 - instructions: 2693639897 + instructions: 2691148701 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_64_128: total: calls: 1 - instructions: 1242491828 + instructions: 1241957624 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_8_128: total: calls: 1 - instructions: 862886019 + instructions: 862745891 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob8_u64: total: calls: 1 - instructions: 595853647 + instructions: 595826027 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1325,7 +1325,7 @@ benches: btreemap_v2_pop_last_blob_32_4: total: calls: 1 - instructions: 776952622 + instructions: 776952126 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1346,7 +1346,7 @@ benches: btreemap_v2_pop_last_blob_32_8: total: calls: 1 - instructions: 790946609 + instructions: 790946565 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1374,21 +1374,21 @@ benches: btreemap_v2_pop_last_blob_8_128: total: calls: 1 - instructions: 615779069 + instructions: 615779065 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_blob8: total: calls: 1 - instructions: 678338308 + instructions: 678333944 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_u64: total: calls: 1 - instructions: 689260403 + instructions: 689228779 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1409,42 +1409,42 @@ benches: btreemap_v2_pop_last_vec_1024_128: total: calls: 1 - instructions: 4239103675 + instructions: 4236129487 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_128_128: total: calls: 1 - instructions: 1509202438 + instructions: 1508005318 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_16_128: total: calls: 1 - instructions: 1022271781 + instructions: 1022083121 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_256_128: total: calls: 1 - instructions: 2065405263 + instructions: 2063446347 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_1024: total: calls: 1 - instructions: 1660630528 + instructions: 1659038728 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_128: total: calls: 1 - instructions: 1078545809 + instructions: 1078246309 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1458,7 +1458,7 @@ benches: btreemap_v2_pop_last_vec_32_256: total: calls: 1 - instructions: 1199037861 + instructions: 1198297165 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1479,14 +1479,14 @@ benches: btreemap_v2_pop_last_vec_32_512: total: calls: 1 - instructions: 1357630035 + instructions: 1356519035 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_64: total: calls: 1 - instructions: 968549930 + instructions: 968507554 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1500,28 +1500,28 @@ benches: btreemap_v2_pop_last_vec_4_128: total: calls: 1 - instructions: 534270272 + instructions: 534198256 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_512_128: total: calls: 1 - instructions: 2793078247 + instructions: 2790585867 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_64_128: total: calls: 1 - instructions: 1230553233 + instructions: 1230020877 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_8_128: total: calls: 1 - instructions: 862573315 + instructions: 862433243 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1591,14 +1591,14 @@ benches: btreemap_v2_remove_10mib_values: total: calls: 1 - instructions: 4745601912 + instructions: 4738893196 heap_increase: 0 stable_memory_increase: 657 scopes: {} btreemap_v2_remove_blob8_u64: total: calls: 1 - instructions: 596923486 + instructions: 596895442 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1654,7 +1654,7 @@ benches: btreemap_v2_remove_blob_32_256: total: calls: 1 - instructions: 799332929 + instructions: 799332913 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1668,7 +1668,7 @@ benches: btreemap_v2_remove_blob_32_4: total: calls: 1 - instructions: 712636345 + instructions: 712636077 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1689,7 +1689,7 @@ benches: btreemap_v2_remove_blob_32_8: total: calls: 1 - instructions: 712282512 + instructions: 712282460 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1724,14 +1724,14 @@ benches: btreemap_v2_remove_u64_blob8: total: calls: 1 - instructions: 591289236 + instructions: 591285424 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_u64: total: calls: 1 - instructions: 612365812 + instructions: 612332092 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1752,42 +1752,42 @@ benches: btreemap_v2_remove_vec_1024_128: total: calls: 1 - instructions: 4442411298 + instructions: 4438860682 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_128_128: total: calls: 1 - instructions: 1419451888 + instructions: 1418057388 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_16_128: total: calls: 1 - instructions: 926959671 + instructions: 926755003 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_256_128: total: calls: 1 - instructions: 2218247226 + instructions: 2215939794 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_1024: total: calls: 1 - instructions: 1693369363 + instructions: 1691463667 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_128: total: calls: 1 - instructions: 1039023874 + instructions: 1038694882 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1801,7 +1801,7 @@ benches: btreemap_v2_remove_vec_32_256: total: calls: 1 - instructions: 1244959916 + instructions: 1244067984 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1822,14 +1822,14 @@ benches: btreemap_v2_remove_vec_32_512: total: calls: 1 - instructions: 1402127537 + instructions: 1400789105 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_64: total: calls: 1 - instructions: 981819349 + instructions: 981774893 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1843,28 +1843,28 @@ benches: btreemap_v2_remove_vec_4_128: total: calls: 1 - instructions: 668639445 + instructions: 668557997 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_512_128: total: calls: 1 - instructions: 3050432564 + instructions: 3047442828 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_64_128: total: calls: 1 - instructions: 1191118692 + instructions: 1190503436 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_8_128: total: calls: 1 - instructions: 831170271 + instructions: 831016555 heap_increase: 0 stable_memory_increase: 0 scopes: {} diff --git a/benchmarks/compare/canbench_results.yml b/benchmarks/compare/canbench_results.yml index 90d96d2d..f35dfed4 100644 --- a/benchmarks/compare/canbench_results.yml +++ b/benchmarks/compare/canbench_results.yml @@ -2,21 +2,21 @@ benches: read_chunks_btreemap_1: total: calls: 1 - instructions: 1222164216 + instructions: 1219162510 heap_increase: 3233 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1k: total: calls: 1 - instructions: 5422664112 + instructions: 5415231039 heap_increase: 1604 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1m: total: calls: 1 - instructions: 134584899612 + instructions: 134599901409 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -44,42 +44,42 @@ benches: read_chunks_vec_1: total: calls: 1 - instructions: 1363286410 + instructions: 1363286421 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1k: total: calls: 1 - instructions: 1378474856 + instructions: 1378474867 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1m: total: calls: 1 - instructions: 4721968939 + instructions: 4721968950 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1: total: calls: 1 - instructions: 1072804721 + instructions: 1069802998 heap_increase: 3233 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1k: total: calls: 1 - instructions: 4922584226 + instructions: 4915151136 heap_increase: 1604 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1m: total: calls: 1 - instructions: 90638821840 + instructions: 90653823620 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -107,21 +107,21 @@ benches: write_chunks_vec_1: total: calls: 1 - instructions: 1257790956 + instructions: 1257790953 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1k: total: calls: 1 - instructions: 1272012664 + instructions: 1272012661 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1m: total: calls: 1 - instructions: 3712427301 + instructions: 3712427298 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} diff --git a/benchmarks/compare/src/main.rs b/benchmarks/compare/src/main.rs index 196fb544..92e57d2a 100644 --- a/benchmarks/compare/src/main.rs +++ b/benchmarks/compare/src/main.rs @@ -15,7 +15,7 @@ fn init_memory(id: u8) -> impl Memory { } fn ensure_memory_size(memory: &impl Memory, size: usize) { - let required = size.div_ceil(WASM_PAGE_SIZE_IN_BYTES) as u64; + let required = size.div_ceil(WASM_PAGE_SIZE_IN_BYTES as usize) as u64; if memory.size() < required { memory.grow(required - memory.size()); } diff --git a/examples/Cargo.lock b/examples/Cargo.lock index 89d48a3f..1c887ab9 100644 --- a/examples/Cargo.lock +++ b/examples/Cargo.lock @@ -251,14 +251,14 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "ic-cdk" -version = "0.12.3" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16c64e04d117461946f34785f8d327dc050a7e47abec6ffad93143dda5d755f1" +checksum = "95a7344f41493cbf591f13ae9f90181076f808a83af799815c3074b19c693d2e" dependencies = [ "candid", "ic-cdk-executor", "ic-cdk-macros", - "ic0 0.21.1", + "ic0 0.23.0", "serde", "serde_bytes", ] @@ -271,16 +271,16 @@ checksum = "903057edd3d4ff4b3fe44a64eaee1ceb73f579ba29e3ded372b63d291d7c16c2" [[package]] name = "ic-cdk-macros" -version = "0.8.4" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5a618e4020cea88e933d8d2f8c7f86d570ec06213506a80d4f2c520a9bba512" +checksum = "84cbaa50fa36d3e0616114becf81faa95a099e0d60948ed6978f30f1c77399fd" dependencies = [ "candid", "proc-macro2", "quote", "serde", "serde_tokenstream", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] @@ -292,15 +292,15 @@ dependencies = [ [[package]] name = "ic0" -version = "0.18.11" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "576c539151d4769fb4d1a0c25c4108dd18facd04c5695b02cf2d226ab4e43aa5" +checksum = "8de254dd67bbd58073e23dc1c8553ba12fa1dc610a19de94ad2bbcd0460c067f" [[package]] name = "ic0" -version = "0.21.1" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a54b5297861c651551676e8c43df805dad175cc33bc97dbd992edbbb85dcbcdf" +checksum = "39a4ced1c92f952a12e554742ffa7d21752a02450930c3b76bea78a2f1b7ab16" [[package]] name = "ic_principal" @@ -455,13 +455,14 @@ dependencies = [ [[package]] name = "serde_tokenstream" -version = "0.1.7" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "797ba1d80299b264f3aac68ab5d12e5825a561749db4df7cd7c8083900c5d4e9" +checksum = "64060d864397305347a78851c51588fd283767e7e7589829e8121d65512340f1" dependencies = [ "proc-macro2", + "quote", "serde", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] @@ -524,7 +525,7 @@ dependencies = [ "ic-cdk", "ic-cdk-macros", "ic-stable-structures", - "ic0 0.18.11", + "ic0 0.25.1", ] [[package]] diff --git a/examples/Cargo.toml b/examples/Cargo.toml index e5ad348c..ba24b7ac 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -10,8 +10,8 @@ members = [ [workspace.dependencies] candid = "0.10.14" -ciborium = "0.2.1" -ic-cdk = "0.12.1" -ic-cdk-macros = "0.8.4" -ic0 = "0.18" -serde = "1.0.132" +ciborium = "0.2.2" +ic-cdk = "0.17.2" +ic-cdk-macros = "0.17.2" +ic0 = "0.25.1" +serde = "1.0.219" diff --git a/examples/dfx.json b/examples/dfx.json index 196edbd1..bb5137b8 100644 --- a/examples/dfx.json +++ b/examples/dfx.json @@ -1,5 +1,5 @@ { - "dfx": "0.14.3", + "dfx": "0.23.0", "canisters": { "assets_example": { "candid": "src/assets_example/candid.did", @@ -39,4 +39,4 @@ } }, "version": 1 -} +} \ No newline at end of file diff --git a/examples/src/task_timer/src/lib.rs b/examples/src/task_timer/src/lib.rs index d2717c58..6d84bb5c 100644 --- a/examples/src/task_timer/src/lib.rs +++ b/examples/src/task_timer/src/lib.rs @@ -56,7 +56,7 @@ fn execute_task(scheduled_at: u64, now: u64) { fn reschedule() { if let Some(task_time) = TASKS.with(|t| t.borrow().peek()) { unsafe { - ic0::global_timer_set(task_time as i64); + ic0::global_timer_set(task_time as u64); } } }