From 28a9fe8e898dc7662de2a13204b6f06bce536e14 Mon Sep 17 00:00:00 2001 From: Yan Chen <48968912+chenyan-dfinity@users.noreply.github.com> Date: Thu, 17 Nov 2022 12:47:16 -0800 Subject: [PATCH] release (#392) * release * fix * fix --- Cargo.lock | 4 ++-- Changelog.md | 5 +++++ rust/candid/Cargo.toml | 2 +- rust/candid/src/bindings/motoko.rs | 5 ++++- tools/didc/Cargo.toml | 2 +- tools/ui/dfx.json | 6 ------ tools/ui/src/didjs/Cargo.toml | 6 +++--- 7 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 02a6a204..5d7f4aeb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -217,7 +217,7 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "candid" -version = "0.8.3" +version = "0.8.4" dependencies = [ "anyhow", "arbitrary", @@ -534,7 +534,7 @@ dependencies = [ [[package]] name = "didc" -version = "0.1.5" +version = "0.1.6" dependencies = [ "anyhow", "candid", diff --git a/Changelog.md b/Changelog.md index 1f662a0b..36548829 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,11 @@ # Changelog +## 2022-11-17 (Rust 0.8.3 -- 0.8.4) + +* Bug fix in TS bindings +* Pretty print numbers + ## 2022-10-06 (Rust 0.8.2) * Downgrade `serde_dhall` for license issue. diff --git a/rust/candid/Cargo.toml b/rust/candid/Cargo.toml index 42d170b4..2065b28d 100644 --- a/rust/candid/Cargo.toml +++ b/rust/candid/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "candid" -version = "0.8.3" +version = "0.8.4" edition = "2018" authors = ["DFINITY Team"] description = "Candid is an interface description language (IDL) for interacting with canisters running on the Internet Computer." diff --git a/rust/candid/src/bindings/motoko.rs b/rust/candid/src/bindings/motoko.rs index 8b95f8e6..f1a34aac 100644 --- a/rust/candid/src/bindings/motoko.rs +++ b/rust/candid/src/bindings/motoko.rs @@ -25,7 +25,7 @@ fn is_tuple(t: &Type) -> bool { _ => false, } } -static KEYWORDS: [&str; 42] = [ +static KEYWORDS: [&str; 45] = [ "actor", "and", "async", @@ -42,6 +42,7 @@ static KEYWORDS: [&str; 42] = [ "false", "flexible", "for", + "from_candid", "func", "if", "in", @@ -64,10 +65,12 @@ static KEYWORDS: [&str; 42] = [ "system", "try", "throw", + "to_candid", "true", "type", "var", "while", + "with", ]; fn escape(id: &str, is_method: bool) -> RcDoc { if KEYWORDS.contains(&id) { diff --git a/tools/didc/Cargo.toml b/tools/didc/Cargo.toml index d78a2d10..6cf8545b 100644 --- a/tools/didc/Cargo.toml +++ b/tools/didc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "didc" -version = "0.1.5" +version = "0.1.6" authors = ["DFINITY Team"] edition = "2018" diff --git a/tools/ui/dfx.json b/tools/ui/dfx.json index 5e960625..db487238 100644 --- a/tools/ui/dfx.json +++ b/tools/ui/dfx.json @@ -11,11 +11,5 @@ ] } }, - "networks": { - "local": { - "bind": "localhost:8000", - "type": "ephemeral" - } - }, "version": 1 } diff --git a/tools/ui/src/didjs/Cargo.toml b/tools/ui/src/didjs/Cargo.toml index 18ac3424..e6d02094 100644 --- a/tools/ui/src/didjs/Cargo.toml +++ b/tools/ui/src/didjs/Cargo.toml @@ -8,8 +8,8 @@ path = "lib.rs" crate-type = ["cdylib"] [dependencies] -ic-cdk = "0.5" -ic-cdk-macros = "0.5" -candid = "0.7" +ic-cdk = "0.6" +ic-cdk-macros = "0.6" +candid = "0.8" serde = "1.0" serde_bytes = "0.11"