提交 03354b8b authored 作者: Serhij S's avatar Serhij S

msrv up to 1.81

上级 35bbb614
...@@ -36,16 +36,16 @@ sysinfo = "0.29" ...@@ -36,16 +36,16 @@ sysinfo = "0.29"
thiserror = "1.0.57" thiserror = "1.0.57"
tracing = "0.1.40" tracing = "0.1.40"
signal-hook = "0.3.17" signal-hook = "0.3.17"
eva-common = { version = "=0.3.71", features = ["events", "payload", "common-payloads", "acl"], optional = true } eva-common = { version = "0.3.85", features = ["events", "payload", "common-payloads", "acl"], optional = true }
eva-sdk = { version = "0.3.49", features = ["controller"], optional = true } eva-sdk = { version = "0.3.61", features = ["controller"], optional = true }
busrt = { version = "0.4.9", features = ["rpc", "ipc"], optional = true } busrt = { version = "0.4.9", features = ["rpc", "ipc"], optional = true }
tokio = { version = "1.36.0", optional = true } tokio = { version = "1.36.0", optional = true }
hostname = { version = "0.3.1", optional = true } hostname = { version = "0.3.1", optional = true }
env_logger = "0.10" env_logger = "0.10"
log = "0.4.21" log = "0.4.21"
metrics-exporter-prometheus = { version = "0.14.0", optional = true, default-features = false, features = ["http-listener"] } metrics-exporter-prometheus = { version = "0.16.0", optional = true, default-features = false, features = ["http-listener"] }
metrics-exporter-scope = { version = "0.1.3", default-features = false, features = ["msrv"], optional = true } metrics-exporter-scope = { version = "0.2.0", optional = true }
metrics = { version = "0.22.3", optional = true } metrics = { version = "0.24", optional = true }
snmp2 = { version = "0.3", optional = true } snmp2 = { version = "0.3", optional = true }
rtsc = "0.3" rtsc = "0.3"
rvideo = { version = "0.5", optional = true, default-features = false } rvideo = { version = "0.5", optional = true, default-features = false }
......
...@@ -188,3 +188,7 @@ Linux machines only. ...@@ -188,3 +188,7 @@ Linux machines only.
modules with the chosen locking policy. modules with the chosen locking policy.
* [`hub_async`] now requires `async` feature to be enabled. * [`hub_async`] now requires `async` feature to be enabled.
## MSRV
1.81.0
[toolchain] [toolchain]
channel = "1.68.0" channel = "1.81.0"
...@@ -29,8 +29,12 @@ impl<T> Default for Supervisor<T> { ...@@ -29,8 +29,12 @@ impl<T> Default for Supervisor<T> {
macro_rules! vacant_entry { macro_rules! vacant_entry {
($self:ident, $builder:ident) => {{ ($self:ident, $builder:ident) => {{
let Some(name) = $builder.name.clone() else { return Err(Error::SupervisorNameNotSpecified); }; let Some(name) = $builder.name.clone() else {
let btree_map::Entry::Vacant(entry) = $self.tasks.entry(name.clone()) else { return Err(Error::SupervisorDuplicateTask(name)); }; return Err(Error::SupervisorNameNotSpecified);
};
let btree_map::Entry::Vacant(entry) = $self.tasks.entry(name.clone()) else {
return Err(Error::SupervisorDuplicateTask(name));
};
entry entry
}}; }};
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论