From 9826b7d7bfb4ee7c7d32e7d41dbee75a39cf20c4 Mon Sep 17 00:00:00 2001 From: Ignacio Duart Date: Tue, 26 Sep 2023 16:30:58 +0200 Subject: [PATCH] Update dep for the microblogging app --- apps/freenet-microblogging/Cargo.lock | 36 ++++++++++++--------- apps/freenet-microblogging/Cargo.toml | 2 +- apps/freenet-microblogging/web/src/index.ts | 4 +-- 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/apps/freenet-microblogging/Cargo.lock b/apps/freenet-microblogging/Cargo.lock index 4ac255d79..5cf3784e8 100644 --- a/apps/freenet-microblogging/Cargo.lock +++ b/apps/freenet-microblogging/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "aho-corasick" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f2135563fb5c609d2b2b87c1e8ce7bc41b0b45430fa9661f457981503dd5bf0" +checksum = "ea5d730647d4fadd988536d06fecce94b7b4f2a7efdae548f1cf4b63205518ab" dependencies = [ "memchr", ] @@ -76,9 +76,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "blake3" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "199c42ab6972d92c9f8995f086273d25c42fc0f7b2a1fcefba465c1352d25ba5" +checksum = "0231f06152bf547e9c2b5194f247cd97aacf6dcd8b15d8e5ec0663f64580da87" dependencies = [ "arrayref", "arrayvec", @@ -275,6 +275,8 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "freenet-macros" version = "0.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e9fac5b43bee97b6ee49a376ca9e26eedf8bd581efcb176e4a534304f8b4279" dependencies = [ "proc-macro2", "quote", @@ -303,6 +305,8 @@ dependencies = [ [[package]] name = "freenet-stdlib" version = "0.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb83503ad71922ceeaa56737c0a4a9da11520aaaf8ad6a89f43edb1154f02764" dependencies = [ "arrayvec", "bincode", @@ -797,9 +801,9 @@ checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "semver" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918" +checksum = "ad977052201c6de01a8ef2aa3378c4bd23217a056337d1d6da40468d267a4fb0" dependencies = [ "serde", ] @@ -875,9 +879,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.7" +version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" dependencies = [ "cfg-if", "cpufeatures", @@ -914,9 +918,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.11.0" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9" +checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a" [[package]] name = "spin" @@ -989,9 +993,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17f6bb557fd245c28e6411aa56b6403c689ad95061f50e4be16c274e70a17e48" +checksum = "426f806f4089c493dcac0d24c29c01e2c38baf8e30f1b716ee37e83d200b18fe" dependencies = [ "deranged", "itoa", @@ -1002,15 +1006,15 @@ dependencies = [ [[package]] name = "time-core" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" +checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a942f44339478ef67935ab2bbaec2fb0322496cf3cbe84b261e06ac3814c572" +checksum = "4ad70d68dba9e1f8aceda7aa6711965dfec1cac869f311a51bd08b3a2ccbce20" dependencies = [ "time-core", ] diff --git a/apps/freenet-microblogging/Cargo.toml b/apps/freenet-microblogging/Cargo.toml index d7e19decb..c998161d5 100644 --- a/apps/freenet-microblogging/Cargo.toml +++ b/apps/freenet-microblogging/Cargo.toml @@ -14,7 +14,7 @@ panic = 'abort' strip = true [workspace.dependencies] -freenet-stdlib = { path = "../../stdlib/rust", default-features = false } +freenet-stdlib = { version = "0.0.5", default-features = false } #[target.wasm32-unknown-unknown] #rustflags = ["-C", "link-arg=--import-memory"] diff --git a/apps/freenet-microblogging/web/src/index.ts b/apps/freenet-microblogging/web/src/index.ts index 51429f047..de4d923fd 100644 --- a/apps/freenet-microblogging/web/src/index.ts +++ b/apps/freenet-microblogging/web/src/index.ts @@ -3,7 +3,7 @@ import { GetResponse, HostError, ContractKey, - LocutusWsApi, + FreenetWsApi, PutResponse, UpdateNotification, UpdateResponse, @@ -146,7 +146,7 @@ const handler = { }; const API_URL = new URL(`ws://${location.host}/contract/command`); -const locutusApi = new LocutusWsApi(API_URL, handler); +const locutusApi = new FreenetWsApi(API_URL, handler); async function loadState() { const key = ContractKey.fromInstanceId(MODEL_CONTRACT);