From e20e237415cbe50de873b7cee6317bcd4a111037 Mon Sep 17 00:00:00 2001 From: Linwei Shang Date: Fri, 11 Oct 2024 10:37:32 -0400 Subject: [PATCH] bump crates to alpha.1 --- Cargo.toml | 8 ++++---- ic-cdk-macros/Cargo.toml | 2 +- ic-cdk-management-canister/Cargo.toml | 2 +- ic-cdk-timers/Cargo.toml | 2 +- ic-cdk/Cargo.toml | 4 ++-- ic0/Cargo.toml | 2 +- ic0/README.md | 4 +--- ic0.txt => ic0/ic0.txt | 0 ic0/util/ic0build.rs | 2 +- library/ic-ledger-types/Cargo.toml | 2 +- 10 files changed, 13 insertions(+), 15 deletions(-) rename ic0.txt => ic0/ic0.txt (100%) diff --git a/Cargo.toml b/Cargo.toml index abffc7df7..9f6c01c2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,10 +30,10 @@ lto = true opt-level = 'z' [workspace.dependencies] -ic0 = { path = "ic0", version = "0.23.0" } -ic-cdk = { path = "ic-cdk", version = "0.16.0" } -ic-cdk-management-canister = { path = "ic-cdk-management-canister", version = "0.1.0" } -ic-cdk-timers = { path = "ic-cdk-timers", version = "0.10.0" } +ic0 = { path = "ic0", version = "0.24.0-alpha.1" } +ic-cdk = { path = "ic-cdk", version = "0.17.0-alpha.1" } +ic-cdk-management-canister = { path = "ic-cdk-management-canister", version = "0.1.0-alpha.1" } +ic-cdk-timers = { path = "ic-cdk-timers", version = "0.11.0-alpha.1" } candid = "0.10.4" candid_parser = "0.1.4" diff --git a/ic-cdk-macros/Cargo.toml b/ic-cdk-macros/Cargo.toml index 3cc05e464..39f2134b1 100644 --- a/ic-cdk-macros/Cargo.toml +++ b/ic-cdk-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-cdk-macros" -version = "0.16.0" # sync with ic-cdk +version = "0.17.0-alpha.1" # sync with ic-cdk authors.workspace = true edition.workspace = true license.workspace = true diff --git a/ic-cdk-management-canister/Cargo.toml b/ic-cdk-management-canister/Cargo.toml index 5aa61e056..ee2ccdb25 100644 --- a/ic-cdk-management-canister/Cargo.toml +++ b/ic-cdk-management-canister/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-cdk-management-canister" -version = "0.1.0" +version = "0.1.0-alpha.1" authors.workspace = true edition.workspace = true repository.workspace = true diff --git a/ic-cdk-timers/Cargo.toml b/ic-cdk-timers/Cargo.toml index 58da23362..222ff1b76 100644 --- a/ic-cdk-timers/Cargo.toml +++ b/ic-cdk-timers/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-cdk-timers" -version = "0.10.0" +version = "0.11.0-alpha.1" authors.workspace = true edition.workspace = true license.workspace = true diff --git a/ic-cdk/Cargo.toml b/ic-cdk/Cargo.toml index a4064e045..9423dcac5 100644 --- a/ic-cdk/Cargo.toml +++ b/ic-cdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-cdk" -version = "0.16.0" # sync with ic-cdk-macros +version = "0.17.0-alpha.1" # sync with ic-cdk-macros authors.workspace = true edition.workspace = true license.workspace = true @@ -27,7 +27,7 @@ ic0.workspace = true # Dependents won't accidentaly upgrading ic-cdk-macros only but not ic-cdk. # ic-cdk-macros is a hidden dependency, re-exported by ic-cdk. # It should not be included by users direcly. -ic-cdk-macros = { path = "../ic-cdk-macros", version = "=0.16.0" } +ic-cdk-macros = { path = "../ic-cdk-macros", version = "=0.17.0-alpha.1" } serde.workspace = true serde_bytes.workspace = true slotmap = { workspace = true, optional = true } diff --git a/ic0/Cargo.toml b/ic0/Cargo.toml index 266013dcf..657ef0d7a 100644 --- a/ic0/Cargo.toml +++ b/ic0/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic0" -version = "0.23.0" +version = "0.24.0-alpha.1" authors.workspace = true edition.workspace = true license.workspace = true diff --git a/ic0/README.md b/ic0/README.md index bbb6ea1a4..1c1b610a5 100644 --- a/ic0/README.md +++ b/ic0/README.md @@ -6,7 +6,7 @@ Internet Computer System API binding. `ic0` is simply an unsafe Rust translation of the System API as described in the [IC interface specification][1]. -## Update and Version Strategy +## Update `ic0` keeps in step with the IC interface specification. Particularly, `ic0` is directly generated from [system API][1] in that repo. @@ -17,6 +17,4 @@ When interface-spec releases a new version that modify [system API][1]: `src/ic0.rs` should be updated. -The version of `ic0` crate will also bump to the same version as the IC interface specification. - [1]: https://internetcomputer.org/docs/current/references/ic-interface-spec/#system-api-imports diff --git a/ic0.txt b/ic0/ic0.txt similarity index 100% rename from ic0.txt rename to ic0/ic0.txt diff --git a/ic0/util/ic0build.rs b/ic0/util/ic0build.rs index cb4c79078..ee310a3d6 100644 --- a/ic0/util/ic0build.rs +++ b/ic0/util/ic0build.rs @@ -115,7 +115,7 @@ impl Parse for IC0 { } fn main() { - let s = include_str!("../../ic0.txt"); + let s = include_str!("../ic0.txt"); let s = s.replace('I', "usize"); let s = s.replace("i32", "u32"); let s = s.replace("i64", "u64"); diff --git a/library/ic-ledger-types/Cargo.toml b/library/ic-ledger-types/Cargo.toml index 2f4d483a0..a5f7c2695 100644 --- a/library/ic-ledger-types/Cargo.toml +++ b/library/ic-ledger-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-ledger-types" -version = "0.13.0" +version = "0.14.0-alpha.1" authors.workspace = true edition.workspace = true license.workspace = true