From 11e078a78cecf1085304be2412e76cfde9556773 Mon Sep 17 00:00:00 2001 From: xxchan Date: Tue, 11 Jul 2023 12:48:42 +0200 Subject: [PATCH] chore: minor fixes (#158) * fix cargo warning for resolver warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"` note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest As a library, this isn't important as end-user application decides the resolver finally. Just remove the warning. * bump log to 0.4.19 failed to compile on latest nightly due to value-bag * fix build --- Cargo.toml | 1 + madsim-rdkafka/Cargo.toml | 2 +- madsim-tonic/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8e8eba3..fc1ad72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,3 +10,4 @@ members = [ "madsim-rdkafka", "tonic-example", ] +resolver = "2" diff --git a/madsim-rdkafka/Cargo.toml b/madsim-rdkafka/Cargo.toml index 7ec01c0..53be120 100644 --- a/madsim-rdkafka/Cargo.toml +++ b/madsim-rdkafka/Cargo.toml @@ -32,7 +32,7 @@ futures-channel = "0.3.0" futures-executor = { version = "0.3.0", optional = true } futures-util = { version = "0.3.0", default-features = false } libc = "0.2.0" -log = "0.4.8" +log = "0.4.19" serde = { version = "1.0.0", features = ["derive"] } serde_derive = "1.0.0" serde_json = "1.0.0" diff --git a/madsim-tonic/Cargo.toml b/madsim-tonic/Cargo.toml index e44d10b..797e9ae 100644 --- a/madsim-tonic/Cargo.toml +++ b/madsim-tonic/Cargo.toml @@ -24,4 +24,4 @@ chrono = { version = "0.4", default-features = false, features = ["clock"] } futures-util = "0.3" madsim = { version = "0.2.20", path = "../madsim" } tracing = "0.1" -tonic = { version = "0.8.3", default-features = false, features = ["codegen"] } +tonic = { version = "0.8.3", default-features = false, features = ["codegen", "transport"] }