Skip to content

Commit 82904f7

Browse files
committed
bump strup
Signed-off-by: Jorge Prendes <[email protected]>
1 parent 23192b7 commit 82904f7

File tree

8 files changed

+18
-73
lines changed

8 files changed

+18
-73
lines changed

Cargo.lock

Lines changed: 3 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/hyperlight_common/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ flatbuffers = { version = "24.3.25", default-features = false }
1919
anyhow = { version = "1.0.72", default-features = false }
2020
log = "0.4.20"
2121
tracing = { version = "0.1.27", optional = true }
22-
strum = {version = "0.25", default-features = false, features = ["derive"]}
23-
strum_macros = {version = "0.26", features =[]}
22+
strum = {version = "0.26", default-features = false, features = ["derive"]}
2423

2524
[features]
2625
default = ["tracing"]

src/hyperlight_common/src/flatbuffer_wrappers/guest_log_level.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616

1717
use anyhow::{bail, Error, Result};
1818
use log::Level;
19-
use strum_macros::EnumIter;
19+
use strum::EnumIter;
2020
#[cfg(feature = "tracing")]
2121
use tracing::{instrument, Span};
2222

src/hyperlight_host/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ crossbeam = "0.8.0"
4444
crossbeam-channel = "0.5.8"
4545
thiserror = "2.0.0"
4646
prometheus = "0.13.3"
47-
strum = { version = "0.25", features = ["derive"] }
47+
strum = { version = "0.26", features = ["derive"] }
4848
tempfile = { version = "3.10", optional = true }
4949
serde_yaml = "0.9"
5050
anyhow = "1.0"

src/hyperlight_host/src/hypervisor/metrics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use std::collections::HashMap;
2121
use std::sync::Once;
2222

2323
use once_cell::sync::OnceCell;
24-
use strum::{EnumIter, EnumVariantNames, IntoStaticStr};
24+
use strum::{EnumIter, IntoStaticStr, VariantNames};
2525
use tracing::{instrument, Span};
2626

2727
use crate::metrics::{
@@ -55,7 +55,7 @@ static HYPERVISOR_METRIC_DEFINITIONS: &[HyperlightMetricDefinition] =
5555
/// The enum is required to derive from EnumIter, EnumVariantNames, IntoStaticStr
5656
/// and strum(serialize_all = "snake_case") performs the name conversion from CamelCase to snake_case
5757
/// when the enum variant is serialized to a string
58-
#[derive(Debug, EnumIter, EnumVariantNames, IntoStaticStr)]
58+
#[derive(Debug, EnumIter, VariantNames, IntoStaticStr)]
5959
#[strum(serialize_all = "snake_case")]
6060
pub(super) enum HypervisorMetric {
6161
NumberOfCancelledGuestExecutions,

src/hyperlight_host/src/sandbox/metrics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use std::collections::HashMap;
2121
use std::sync::Once;
2222

2323
use once_cell::sync::OnceCell;
24-
use strum::{EnumIter, EnumVariantNames, IntoStaticStr};
24+
use strum::{EnumIter, IntoStaticStr, VariantNames};
2525
use tracing::{instrument, Span};
2626

2727
use crate::metrics::{
@@ -87,7 +87,7 @@ static SANDBOX_METRIC_DEFINITIONS: &[HyperlightMetricDefinition] = &[
8787
/// The enum is required to derive from EnumIter, EnumVariantNames, IntoStaticStr
8888
/// and strum(serialize_all = "snake_case") performs the name conversion from CamelCase to snake_case
8989
/// when the enum variant is serialized to a string
90-
#[derive(Debug, EnumIter, EnumVariantNames, IntoStaticStr)]
90+
#[derive(Debug, EnumIter, VariantNames, IntoStaticStr)]
9191
#[strum(serialize_all = "snake_case")]
9292
pub(crate) enum SandboxMetric {
9393
GuestErrorCount,

src/tests/rust_guests/callbackguest/Cargo.lock

Lines changed: 4 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tests/rust_guests/simpleguest/Cargo.lock

Lines changed: 4 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)