From 02e02b57318ec9b529391d352b887e48cc3269ec Mon Sep 17 00:00:00 2001 From: Quanwei Zhou Date: Tue, 17 Dec 2024 16:08:32 +0800 Subject: [PATCH] build: fix build error Lock home to avoid conflict with latest version. Fixes: #266 Signed-off-by: Quanwei Zhou --- Cargo.toml | 2 ++ compiler/Cargo.toml | 2 ++ ttrpc-codegen/Cargo.toml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 0df03998..10718b66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,8 @@ windows-sys = {version = "0.48", features = [ "Win32_Foundation", "Win32_Storage tokio-vsock = { version = "0.4.0", optional = true } [build-dependencies] +# lock home to avoid conflict with latest version +home = "=0.5.9" protobuf-codegen = "3.1.0" [features] diff --git a/compiler/Cargo.toml b/compiler/Cargo.toml index e449d34d..828c9879 100644 --- a/compiler/Cargo.toml +++ b/compiler/Cargo.toml @@ -12,6 +12,8 @@ homepage = "https://github.com/containerd/ttrpc-rust/tree/master/compiler" readme = "README.md" [dependencies] +# lock home to avoid conflict with latest version +home = "=0.5.9" protobuf = "2.27.1" protobuf-codegen = "2.27.1" prost = "0.8" diff --git a/ttrpc-codegen/Cargo.toml b/ttrpc-codegen/Cargo.toml index 43c30de8..250cb086 100644 --- a/ttrpc-codegen/Cargo.toml +++ b/ttrpc-codegen/Cargo.toml @@ -13,6 +13,8 @@ readme = "README.md" [dependencies] +# lock home to avoid conflict with latest version +home = "=0.5.9" protobuf-support = "3.2.0" protobuf = { version = "2.27.1" } protobuf-codegen = "3.2.0"