Update to strum 0.25.0

This commit is contained in:
Henrik Friedrichsen
2023-07-22 12:42:57 +02:00
parent 9709c73324
commit 66bb0746b6
3 changed files with 26 additions and 7 deletions

27
Cargo.lock generated
View File

@@ -1971,8 +1971,8 @@ dependencies = [
"serde_cbor",
"serde_json",
"signal-hook",
"strum",
"strum_macros",
"strum 0.25.0",
"strum_macros 0.25.1",
"tokio",
"tokio-stream",
"tokio-util",
@@ -2935,7 +2935,7 @@ dependencies = [
"enum_dispatch",
"serde",
"serde_json",
"strum",
"strum 0.24.1",
"thiserror",
]
@@ -3303,9 +3303,15 @@ version = "0.24.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f"
dependencies = [
"strum_macros",
"strum_macros 0.24.3",
]
[[package]]
name = "strum"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125"
[[package]]
name = "strum_macros"
version = "0.24.3"
@@ -3319,6 +3325,19 @@ dependencies = [
"syn 1.0.109",
]
[[package]]
name = "strum_macros"
version = "0.25.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6069ca09d878a33f883cc06aaa9718ede171841d3832450354410b718b097232"
dependencies = [
"heck",
"proc-macro2",
"quote",
"rustversion",
"syn 2.0.27",
]
[[package]]
name = "subtle"
version = "2.4.1"

View File

@@ -52,8 +52,8 @@ reqwest = {version = "0.11", features = ["blocking", "json"]}
serde = "1.0"
serde_cbor = "0.11.2"
serde_json = "1.0"
strum = "0.24.1"
strum_macros = "0.24.3"
strum = "0.25"
strum_macros = "0.25"
tokio = {version = "1", features = ["rt-multi-thread", "sync", "time", "net"]}
tokio-util = {version = "0.7.8", features = ["codec"]}
tokio-stream = {version = "0.1.14", features = ["sync"]}

View File

@@ -26,7 +26,7 @@ pub enum PlaybackState {
}
/// The focussed library tab when ncspot is started.
#[derive(Clone, Serialize, Deserialize, Debug, Hash, strum::EnumIter)]
#[derive(Clone, Serialize, Deserialize, Debug, Hash, strum_macros::EnumIter)]
#[serde(rename_all = "lowercase")]
pub enum LibraryTab {
Tracks,