g3-runtime: bump MSRV to 1.88

This commit is contained in:
Zhang Jingqiang 2025-08-09 19:56:40 +08:00
parent afe2316829
commit 88869afa9d
4 changed files with 6 additions and 6 deletions

2
Cargo.lock generated
View file

@ -1463,7 +1463,7 @@ dependencies = [
[[package]]
name = "g3-runtime"
version = "0.4.0"
version = "0.5.0"
dependencies = [
"anyhow",
"g3-compat",

View file

@ -224,7 +224,7 @@ g3-msgpack = { version = "0.4", path = "lib/g3-msgpack" }
g3-openssl = { version = "0.4", path = "lib/g3-openssl" }
g3-redis-client = { version = "0.3", path = "lib/g3-redis-client" }
g3-resolver = { version = "0.9", path = "lib/g3-resolver" }
g3-runtime = { version = "0.4", path = "lib/g3-runtime" }
g3-runtime = { version = "0.5", path = "lib/g3-runtime" }
g3-slog-types = { version = "0.2", path = "lib/g3-slog-types" }
g3-smtp-proto = { version = "0.2", path = "lib/g3-smtp-proto" }
g3-socket = { version = "0.5", path = "lib/g3-socket" }

View file

@ -1,8 +1,9 @@
[package]
name = "g3-runtime"
version = "0.4.0"
version = "0.5.0"
license.workspace = true
edition.workspace = true
rust-version.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -235,11 +235,10 @@ impl UnaidedRuntimeConfig {
.spawn(move || {
trace!("started worker thread #{i}");
if let Some(set) = cpu_set {
if let Err(e) = set.apply_to_local_thread() {
if let Some(set) = cpu_set
&& let Err(e) = set.apply_to_local_thread() {
warn!("failed to set sched affinity for worker thread {i}: {e}");
}
}
let mut builder = tokio::runtime::Builder::new_current_thread();
builder.enable_all();